/* ============================================================
   MTE Scholarship - Login Portal Styles
   Matches mteenterprises.com dark/gold color scheme
   ============================================================ */

.mte-login-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 40px 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.mte-login-card {
    background: #2A2109;
    border: 1px solid #3D3215;
    border-radius: 12px;
    padding: 40px 35px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.mte-login-header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #D4A84B;
}

.mte-login-header h2 {
    font-size: 24px;
    color: #D4A84B;
    margin: 0 0 5px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.mte-login-subtitle {
    color: #8A8B9A;
    font-size: 14px;
    margin: 0;
}

.mte-login-desc {
    text-align: center;
    color: #C5C6D0;
    font-size: 14px;
    margin: 0 0 25px;
    line-height: 1.5;
}

/* Form fields */
.mte-login-field {
    margin-bottom: 20px;
}

.mte-login-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 14px;
    color: #FFFFFF;
}

.mte-login-field .mte-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #4A3D1C;
    border-radius: 6px;
    font-size: 15px;
    font-family: inherit;
    background: #332A10;
    color: #FFFFFF;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.mte-login-field .mte-input::placeholder {
    color: #8A8B9A;
}

.mte-login-field .mte-input:focus {
    border-color: #D4A84B;
    outline: none;
    box-shadow: 0 0 0 3px rgba(212, 168, 75, 0.2);
}

/* Password toggle */
.mte-password-wrap {
    position: relative;
}

.mte-password-wrap .mte-input {
    padding-right: 45px;
}

.mte-toggle-pass {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    font-size: 18px;
    line-height: 1;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.mte-toggle-pass:hover {
    opacity: 1;
}

/* Remember me */
.mte-login-remember {
    margin-bottom: 10px;
}

.mte-login-remember .mte-checkbox-label {
    font-weight: normal;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #C5C6D0;
}

.mte-login-remember .mte-checkbox-label input[type="checkbox"] {
    accent-color: #D4A84B;
}

/* Errors */
.mte-login-errors {
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid #E74C3C;
    border-radius: 6px;
    padding: 12px 16px;
    margin-bottom: 20px;
    color: #E88A82;
    font-size: 14px;
    line-height: 1.4;
}

/* Submit button */
.mte-login-btn {
    display: block;
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 700;
    background: linear-gradient(135deg, #D4A84B, #B8922F);
    color: #0B0C1E;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    letter-spacing: 0.5px;
    text-align: center;
    text-decoration: none;
}

.mte-login-btn:hover {
    background: linear-gradient(135deg, #E8C672, #D4A84B);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(212, 168, 75, 0.4);
    color: #0B0C1E;
}

.mte-login-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Footer links */
.mte-login-footer {
    text-align: center;
    margin-top: 20px;
}

.mte-login-footer a {
    color: #D4A84B;
    font-size: 13px;
    text-decoration: none;
    transition: color 0.2s;
}

.mte-login-footer a:hover {
    color: #E8C672;
    text-decoration: underline;
}

/* Welcome state (already logged in) */
.mte-login-welcome {
    text-align: center;
    padding: 10px 0;
}

.mte-login-welcome p {
    color: #C5C6D0;
    font-size: 16px;
    margin: 0 0 20px;
}

.mte-login-welcome strong {
    color: #FFFFFF;
}

.mte-login-alt {
    margin-top: 15px;
    font-size: 13px;
    color: #8A8B9A;
}

.mte-login-alt a {
    color: #D4A84B;
    text-decoration: none;
}

.mte-login-alt a:hover {
    color: #E8C672;
    text-decoration: underline;
}

/* Access denied state */
.mte-login-error-box {
    text-align: center;
    padding: 15px 0;
}

.mte-login-error-box p {
    color: #E88A82;
    font-size: 14px;
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 480px) {
    .mte-login-card {
        padding: 30px 20px;
    }

    .mte-login-header h2 {
        font-size: 20px;
    }
}
