/* ============================================
   MODERN LOGIN PAGE STYLES
   ============================================ */

div.margin-left-content {
    margin: auto;
}

/* Modern Login Box with Glass Effect */
.login-box {
    border-radius: 16px;
    background: #ffffff;
    min-width: 450px;
    padding: 40px 35px;
    width: 420px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.06);
    margin: 100px auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.08);
}

.form-login {
    padding: 0;
}

/* Modern Heading */
.form-login h1 {
    text-transform: uppercase;
    color: #1a1a1a;
    font-weight: 600;
    font-size: 24px;
    letter-spacing: 3px;
    margin: 0 0 30px 0;
    text-align: center;
}

/* Modern Link Styling */
a.link {
    text-decoration: none;
    color: #667eea;
    font-size: 0.9em;
    font-weight: 500;
    transition: color 0.2s ease;
}

a.link:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Forgot Password Box */
.login-box-forget {
    border: none;
    border-radius: 16px;
    background: #fff;
    min-width: 450px;
    padding: 40px 35px;
    width: 450px;
    margin: 165px auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12), 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* Form Labels */
.form-label {
    margin-bottom: 8px;
    font-weight: 500;
    color: #4a5568;
    font-size: 14px;
    letter-spacing: 0.3px;
}

/* Form Rows */
.form-row {
    margin: 20px 0;
}

.login-register-container {
    padding: 100px 20px 40px 20px;
    min-height: 100vh;
    background: #ffffff;
}

.clear-float {
    float: none;
    clear: both;
}

/* Modern Input Fields */
.form-element input[type="text"],
.form-element input[type="password"],
.form-element input[type="email"] {
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 0;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 2px solid #e2e8f0;
    padding: 14px 16px;
    font-size: 15px;
    background: #f7fafc;
}

.form-element input[type="text"]:focus,
.form-element input[type="password"]:focus,
.form-element input[type="email"]:focus {
    border-color: #667eea;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    outline: none;
}

.form-element input[type="text"]:hover,
.form-element input[type="password"]:hover,
.form-element input[type="email"]:hover {
    border-color: #cbd5e0;
}

/* Terms & Conditions Styling */
.form-row table {
    width: 100%;
    box-shadow: none;
    border-radius: 0;
    background: transparent;
    margin: 0;
}

.form-row table tr {
    border: none;
}

.form-row table tr:hover {
    background: transparent;
}

.form-row table td {
    padding: 0;
    vertical-align: top;
    font-size: 14px;
    color: #4a5568;
    border: none;
    line-height: 1.6;
}

.form-row table td:first-child {
    padding: 2px 12px 0 0;
    width: 20px;
}

.form-row table td input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    margin: 0;
    vertical-align: top;
    accent-color: #667eea;
    flex-shrink: 0;
}

.form-row table a {
    color: #09375e;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.form-row table a:hover {
    color: #09375e;
    text-decoration: underline;
}

/* Modern Button Styling */
.btn-primary {
    border: none;
    color: white;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    width: 100%;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
}

.btn-primary:disabled {
    background: linear-gradient(135deg, #cbd5e0 0%, #a0aec0 100%);
    cursor: not-allowed;
    box-shadow: none;
    opacity: 0.6;
}

.btn-block {
    width: 100%;
    display: block;
}

/* Centered Elements */
.float-center {
    text-align: center;
    margin-top: 20px;
}

.float-right-hide {
    padding: 3px;
    display: none;
}

.back-ground {
    background-color: rgba(0, 0, 0, 0.75);
    border-radius: 6px;
    font-size: 0.85em;
    color: #FFFFFF;
    padding: 8px 12px;
}

/* Page Headers */
.frmForgot h1,
.reset-form h1 {
    color: #1a1a1a;
    letter-spacing: 2px;
    font-weight: 600;
}

/* Token Messages */
.token-message {
    text-align: center;
    padding: 150px 20px;
    color: #4a5568;
}

.token-message a {
    color: #667eea;
    font-weight: 500;
}

.token-message a:visited {
    color: #764ba2;
}

/* Already Have Account */
.already {
    font-size: 0.9em;
    margin-top: 15px;
    color: #4a5568;
}

.already a,
.already a:visited {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.already a:hover {
    text-decoration: underline;
}

/* Signup Agreement */
.signup-agree {
    font-size: 0.78em;
    color: #718096;
    line-height: 1.5;
}

/* Send Message Button */
input#send-message {
    width: 175px;
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    font-size: 1em;
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    border: none;
    padding: 12px 24px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

input#send-message:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Facebook Login */
.fb-login-button {
    margin-top: 25px;
    width: 100%;
    text-align: center;
    display: inline-block;
}

.facebook-oauth-loader {
    margin-top: 25px;
    text-align: center;
    display: none;
    color: #4a5568;
    font-weight: 500;
}

/* Error Messages */
#error_info {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
    display: none;
}

#error_info:not(:empty) {
    display: block;
}

#error_info.success {
    display: block;
    background-color: #c6f6d5;
    color: #22543d;
    border: 1px solid #9ae6b4;
}

#error_info.error {
    display: block;
    background-color: #fed7d7;
    color: #742a2a;
    border: 1px solid #fc8181;
}

.error {
    color: #e53e3e;
    font-size: 13px;
    margin-top: 4px;
    display: inline-block;
}

span.error {
    margin-left: 4px;
}

/* Agree Text */
.agree {
    font-size: 0.9em;
    text-align: center;
    padding-top: 10px;
    color: #4a5568;
    line-height: 1.5;
}

.agree a:visited {
    color: #667eea;
    text-decoration: none;
}

/* Responsive Design */
@media screen and (max-width: 480px) {
    .login-box,
    .login-box-forget {
        min-width: 280px;
        width: 90%;
        padding: 30px 20px;
        margin: 60px auto;
    }
    
    .form-login h1 {
        font-size: 20px;
        letter-spacing: 2px;
    }
    
    .login-register-container {
        padding: 60px 15px 30px 15px;
    }
}

@media screen and (max-width: 380px) {
    .login-box {
        padding: 25px 18px;
    }
    
    .form-element input {
        padding: 12px 14px;
        font-size: 14px;
    }
    
    .btn-primary {
        padding: 12px 20px;
        font-size: 14px;
    }
}