:root {
    --primary-dark: #003366;
    --primary-medium: #336699;
    --accent-green: #4CAF50;
    --accent-yellow: #FFEB3B;
    --neutral-light: #F5F5F5;
    --white: #FFFFFF;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --border-color: #e1e5e9;
    --shadow-light: 0 2px 10px rgba(0, 51, 102, 0.08);
    --shadow-medium: 0 8px 32px rgba(0, 51, 102, 0.12);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --danger-color: #dc3545;
}


.password-requirements {
    background: rgba(51, 102, 153, 0.05);
    border: 1px solid rgba(51, 102, 153, 0.1);
    border-radius: var(--border-radius);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.6;
}

.requirements-title {
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.requirement-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.375rem;
}

.requirement-item:last-child {
    margin-bottom: 0;
}

.requirement-icon {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: var(--white);
    flex-shrink: 0;
}

.requirement-icon.valid {
    background: var(--success-color);
}


.reset-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--neutral-light) 0%, #f8fafc 100%);
    padding: 2rem 0;
}

.reset-card {
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow-medium);
    border: 1px solid var(--border-color);
    overflow: hidden;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.card-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-medium) 100%);
    color: var(--white);
    padding: 2.5rem 2rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.card-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20"><defs><radialGradient id="a" cx="50%25" cy="0%25" r="100%25"><stop offset="0%25" stop-color="%23fff" stop-opacity=".1"/><stop offset="100%25" stop-color="%23fff" stop-opacity="0"/></radialGradient></defs><rect width="100" height="20" fill="url(%23a)"/></svg>') repeat-x;
    opacity: 0.3;
}

.header-content {
    position: relative;
    z-index: 2;
}

.reset-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--white);
    font-size: 2rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.reset-title {
    font-size: 1.75rem;
    font-weight: bold;
    margin-bottom: 0.75rem;
    color: var(--white);
}

.reset-subtitle {
    opacity: 0.9;
    font-size: 1rem;
    margin-bottom: 0;
    line-height: 1.5;
}

.card-body {
    padding: 2.5rem 2rem;
}

.form-group {
    margin-bottom: 2rem;
}

.form-label {
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 0.75rem;
    display: block;
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    background: var(--neutral-light);
    transition: var(--transition);
    font-family: inherit;
}

.form-control:focus {
    border-color: var(--primary-medium);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(51, 102, 153, 0.08);
    outline: none;
}

.form-control.is-invalid {
    border-color: var(--danger-color);
    background: rgba(220, 53, 69, 0.05);
}

.invalid-feedback {
    color: var(--danger-color);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    font-weight: 500;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.form-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-reset {
    background: var(--accent-green);
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-reset:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.25);
}

.btn-reset:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-back {
    background: var(--white);
    color: var(--primary-medium);
    border: 2px solid var(--border-color);
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-align: center;
}

.btn-back:hover {
    background: var(--neutral-light);
    color: var(--primary-dark);
    text-decoration: none;
    border-color: var(--primary-medium);
}

.help-text {
    background: rgba(51, 102, 153, 0.05);
    border: 1px solid rgba(51, 102, 153, 0.1);
    border-radius: var(--border-radius);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.help-icon {
    color: var(--primary-medium);
    margin-right: 0.5rem;
}

.brand-logo {
    width: 120px;
    height: auto;
    margin-bottom: 1rem;
}

.footer-links {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-links a {
    color: var(--primary-medium);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    margin: 0 1rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .reset-container {
        min-height: calc(100vh - 2rem);
    }

    .reset-card {
        margin: 0;
    }

    .card-header {
        padding: 2rem 1.5rem 1.5rem;
    }

    .card-body {
        padding: 2rem 1.5rem;
    }

    .reset-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .reset-title {
        font-size: 1.5rem;
    }

    .reset-subtitle {
        font-size: 0.9rem;
    }

    .form-control {
        padding: 0.875rem 1rem;
    }

    .btn-reset,
    .btn-back {
        padding: 0.875rem 1.5rem;
    }

    .footer-links a {
        display: block;
        margin: 0.5rem 0;
    }
}


.success-card {
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow-medium);
    border: 1px solid var(--border-color);
    overflow: hidden;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}

.success-header {
    background: linear-gradient(135deg, var(--accent-green) 0%, #45a049 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.success-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20"><defs><radialGradient id="a" cx="50%25" cy="0%25" r="100%25"><stop offset="0%25" stop-color="%23fff" stop-opacity=".1"/><stop offset="100%25" stop-color="%23fff" stop-opacity="0"/></radialGradient></defs><rect width="100" height="20" fill="url(%23a)"/></svg>') repeat-x;
    opacity: 0.3;
}

.header-content {
    position: relative;
    z-index: 2;
}


.success-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: var(--white);
    animation: slideUp 0.8s ease-out 0.3s both;
}

.success-subtitle {
    opacity: 0.9;
    font-size: 1.1rem;
    margin-bottom: 0;
    line-height: 1.6;
    animation: slideUp 0.8s ease-out 0.5s both;
}


.card-body {
    padding: 2.5rem 2rem;
}

.success-message {
    background: rgba(76, 175, 80, 0.05);
    border: 1px solid rgba(76, 175, 80, 0.2);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.message-icon {
    color: var(--accent-green);
    font-size: 1.2rem;
    margin-right: 0.75rem;
}

.success-text {
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    animation: slideUp 0.8s ease-out 0.7s both;
}

.btn-login {
    background: var(--primary-medium);
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.btn-login:hover {
    background: var(--primary-dark);
    color: var(--white);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(51, 102, 153, 0.25);
}

.btn-secondary-link {
    background: var(--white);
    color: var(--text-secondary);
    border: 2px solid var(--border-color);
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-secondary-link:hover {
    background: var(--neutral-light);
    color: var(--primary-dark);
    text-decoration: none;
    border-color: var(--primary-medium);
}

.security-notice {
    background: rgba(51, 102, 153, 0.05);
    border: 1px solid rgba(51, 102, 153, 0.1);
    border-radius: var(--border-radius);
    padding: 1.25rem;
    margin-top: 2rem;
    text-align: left;
}

.notice-title {
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.notice-text {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0;
}

@media (max-width: 768px) {

    .success-card {
        margin: 0;
    }

    .success-header {
        padding: 2rem 1.5rem 1.5rem;
    }

    .card-body {
        padding: 2rem 1.5rem;
    }

    .success-icon {
        width: 80px;
        height: 80px;
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }

    .success-title {
        font-size: 1.5rem;
    }

    .success-subtitle {
        font-size: 1rem;
    }

    .btn-login,
    .btn-secondary-link {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}