﻿/* Reset for no scroll */
body, html {
    height: 100vh;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.forgot-password-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 10px;
    background: #f5f7fa;
    box-sizing: border-box;
}

.forgot-password-container {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
}

.app-logo {
    text-align: center;
    margin-bottom: 20px;
    flex-shrink: 0;
}

    .app-logo img {
        max-height: 40px;
        max-width: 180px;
        object-fit: contain;
    }

.forgot-password-panel {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.panel-header {
    background: linear-gradient(135deg, #0C4930 0%, #072b1c 100%);
    color: white;
    padding: 18px 16px;
    text-align: center;
}

.lock-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

    .lock-icon i {
        font-size: 24px;
    }

.panel-header h1 {
    margin: 0 0 5px;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;
}

.panel-header p {
    margin: 0;
    font-size: 12px;
    opacity: 0.9;
    line-height: 1.3;
}

.panel-body {
    padding: 20px 16px;
}

.password-expired-note {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    padding: 10px 12px;
    margin-bottom: 16px;
    color: #856404;
    font-size: 12px;
    display: flex;
    align-items: flex-start;
    line-height: 1.3;
}

    .password-expired-note i {
        margin-right: 6px;
        color: #ffc107;
        font-size: 14px;
        flex-shrink: 0;
        margin-top: 1px;
    }

.login-id-info {
    background: #e8f5ee;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 18px;
    border-left: 3px solid #0C4930;
}

.info-title {
    font-size: 11px;
    color: #0C4930;
    font-weight: 600;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
}

    .info-title i {
        margin-right: 6px;
        font-size: 12px;
    }

.info-content {
    font-size: 12px;
    color: #333;
    line-height: 1.4;
}

    .info-content strong {
        font-weight: 600;
    }

.example-list {
    margin: 6px 0 0 16px;
    font-size: 11px;
    color: #666;
    line-height: 1.4;
}

    .example-list p {
        margin: 2px 0;
    }

.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
    font-size: 12px;
    display: flex;
    align-items: center;
}

    .form-label i {
        margin-right: 5px;
        font-size: 13px;
        color: #0C4930;
    }

.form-control {
    width: 100%;
    height: 40px;
    padding: 8px 12px;
    font-size: 13px;
    border: 1.5px solid #e0e0e0;
    border-radius: 5px;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

    .form-control:focus {
        border-color: #0C4930;
        box-shadow: 0 0 0 2px rgba(12, 73, 48, 0.1);
        outline: none;
    }

    .form-control::placeholder {
        color: #999;
        font-size: 12px;
    }

.next-button {
    width: 100%;
    height: 40px;
    background: linear-gradient(135deg, #0C4930 0%, #072b1c 100%);
    border: none;
    border-radius: 5px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 8px;
}

    .next-button:hover {
        transform: translateY(-1px);
        box-shadow: 0 3px 8px rgba(12, 73, 48, 0.25);
    }

    .next-button:active {
        transform: translateY(0);
    }

    .next-button i {
        margin-right: 6px;
        font-size: 13px;
    }

.back-link {
    text-align: center;
    margin-top: 16px;
}

    .back-link a {
        color: #0C4930;
        text-decoration: none;
        font-size: 12px;
        display: inline-flex;
        align-items: center;
        transition: color 0.2s ease;
    }

        .back-link a:hover {
            color: #072b1c;
            text-decoration: underline;
        }

        .back-link a i {
            margin-right: 4px;
            font-size: 11px;
        }

.validation-summary-errors {
    background: #fee;
    border: 1px solid #fcc;
    border-radius: 5px;
    padding: 8px 12px;
    margin-bottom: 14px;
    color: #c33;
    font-size: 12px;
    line-height: 1.3;
}

    .validation-summary-errors ul {
        margin: 0;
        padding-left: 16px;
    }

    .validation-summary-errors li {
        margin-bottom: 3px;
    }

        .validation-summary-errors li:last-child {
            margin-bottom: 0;
        }

.text-danger {
    color: #dc3545;
    font-size: 11px;
    margin-top: 3px;
    display: block;
}

/* Ultra compact spacing */
.panel-body form > *:not(:last-child) {
    margin-bottom: 16px;
}
/* === HIDE EMPTY VALIDATION SUMMARY === */
.validation-summary-errors ul:empty {
    display: none;
}

.validation-summary-valid {
    display: none !important;
}

.validation-summary-errors:empty {
    display: none !important;
}
/* === HIDE EMPTY VALIDATION SUMMARY === */
.validation-summary-errors ul:empty {
    display: none;
}

.validation-summary-valid {
    display: none !important;
}

.validation-summary-errors:empty {
    display: none !important;
}
/* Responsive adjustments */
@media (max-height: 700px) {
    .forgot-password-wrapper {
        justify-content: flex-start;
        padding-top: 15px;
    }

    .app-logo {
        margin-bottom: 15px;
    }

        .app-logo img {
            max-height: 36px;
        }

    .panel-header {
        padding: 14px 12px;
    }

    .lock-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 8px;
    }

        .lock-icon i {
            font-size: 20px;
        }

    .panel-header h1 {
        font-size: 16px;
    }

    .panel-header p {
        font-size: 11px;
    }

    .panel-body {
        padding: 16px 12px;
    }

    .login-id-info {
        padding: 10px;
        margin-bottom: 14px;
    }

    .form-group {
        margin-bottom: 14px;
    }

    .form-control {
        height: 38px;
        font-size: 12px;
    }

    .next-button {
        height: 38px;
        font-size: 13px;
    }

    .back-link {
        margin-top: 12px;
    }
}

@media (max-height: 600px) {
    .forgot-password-wrapper {
        padding-top: 10px;
    }

    .app-logo {
        margin-bottom: 10px;
    }

    .forgot-password-panel {
        max-height: 90vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .panel-body {
        padding-bottom: 20px;
    }

    .example-list {
        font-size: 10px;
    }

    .back-link {
        margin-top: 20px;
        padding-top: 10px;
    }
}
