/* Modern Login Form Styles */
.modern-login-form {
    max-width: 500px;
    margin: 0 auto;
    padding: 2rem;
    background: #ffffff;
    border-radius: 12px;
    /* box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); */
}

.modern-login-form .login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.modern-login-form .welcome-title {
    font-size: 2rem;
    font-weight: 700;
    color: #333333;
    margin: 0 0 0.5rem 0;
    line-height: 1.2;
}

.modern-login-form .welcome-subtitle {
    font-size: 1rem;
    color: #666666;
    margin: 0;
    font-weight: 400;
}

.modern-login-form .login-form {
    max-width: none;
}

.modern-login-form .login-field {
    margin-bottom: 1.5rem;
}

.modern-login-form .field-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #333333;
    margin-bottom: 0.5rem;
}

.modern-login-form .login-field input {
    width: 420px !important;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.modern-login-form .login-field input:focus {
    outline: none;
    border-color: #ff6b35;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.modern-login-form .login-field input::placeholder {
    color: #999999;
    font-size: 0.9rem;
}

.modern-login-form .password {
    position: relative;
}

.modern-login-form .toggle-password-visibility {
    position: absolute;
    right: 25px !important;
    top: 65%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #999999;
    font-size: 18px;
    transition: color 0.3s ease;
}

.modern-login-form .toggle-password-visibility:hover {
    color: #ff6b35;
}

.modern-login-form .forgot-password-link {
    text-align: right;
    margin-bottom: 1.5rem;
    padding-right: 10px;
}

.modern-login-form .forgot-link {
    font-size: 0.9rem;
    color: #666666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.modern-login-form .forgot-link:hover {
    color: #ff6b35;
}

.modern-login-form .click-here {
    color: #ff6b35;
    font-weight: 600;
}

.modern-login-form .sign-in-btn {
    width: 100%;
    padding: 14px 20px;
    background-color: #ff6b35 !important;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
}

.modern-login-form .sign-in-btn:hover {
    background-color: #e55a2b;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.modern-login-form .sign-in-btn:active {
    transform: translateY(0);
}

.modern-login-form .login-controls {
    text-align: center;
    margin-top: 1.5rem;
}

.modern-login-form .create-account-link {
    color: #666666;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.modern-login-form .create-account-link:hover {
    color: #ff6b35;
}

.modern-login-form .alert {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    padding: 12px 16px;
    border-radius: 8px;
    margin: 1rem 0;
    font-size: 0.9rem;
}

.modern-login-form .error-message {
    color: #dc3545;
    font-size: 0.8rem;
    margin-top: 0.25rem;
    display: block;
}

.custom-login-form {
    display: grid;
    flex-direction: row;
    align-items: center;
    grid-template-columns: 1fr 1px 1fr;
    justify-content: space-around;
}

.Login-form-wrapper{
    align-self: center;
    justify-self: center;
    padding-left: 20px;
    /* border-left: 1px solid #e0e0e0; */
}

.pw-login-button{
    width: 80%;
    /* padding: 14px 20px; */
    background-color: #ff6b35 !important;
    color: #ffffff !important;
    border: none;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
    text-align: center;
    border: 1px solid #ff6b35 !important;
    justify-self: center;
}

.pw-login-button a{
    color: #ffffff !important;
    text-decoration: none !important;
}

.vertical-divider {
    background-color: #ccc; /* adjust as needed */
    width: 1px;
    height: 80%;
    justify-self: center;
}

.pw-login-button:hover{
    color: #ff6b35 !important;
    background-color: #ffffff !important;
    text-decoration: none !important;
}

/* Add this to target the anchor inside hovered button */
.pw-login-button:hover a {
    color: #ff6b35 !important;
    text-decoration: none !important;
}

.login-header{
    text-align: center;
    padding: 20px;
}

.login-header h2{
    font-weight: 700;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .custom-login-form {
        display: flex;
        flex-direction: column;
        grid-template-columns: 1fr;
        gap: 2rem;
        align-items: center;
        justify-content: center;
    }
    
    .vertical-divider {
        display: none; /* Hide divider on mobile */
    }
    
    .Login-form-wrapper {
        padding-left: 0;
        padding-top: 2rem;
        border-top: 1px solid #e0e0e0;
        border-left: none;
        width: 100%;
        text-align: center;
    }
    
    .modern-login-form {
        max-width: 100%;
        padding: 1.5rem;
        margin: 0;
    }
    
    .modern-login-form .login-field input {
        width: 80vw !important;
        /* max-width: 350px;  */
    }
    
    .modern-login-form .welcome-title {
        font-size: 1.75rem;
    }
    
    .pw-login-button {
        width: 100%;
        max-width: 350px;
        margin: 1rem auto;
    }
    
    .modern-login-form .forgot-password-link {
        text-align: center;
        padding-right: 0;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .modern-login-form {
        padding: 1rem;
    }
    
    .modern-login-form .welcome-title {
        font-size: 1.5rem;
    }
    
    .modern-login-form .welcome-subtitle {
        font-size: 0.9rem;
    }
    
    .Login-form-wrapper {
        padding-top: 1.5rem;
    }
    
    .pw-login-button {
        font-size: 1rem;
        padding: 12px 16px;
    }
}