/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #60a5fa 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    line-height: 1.6;
}

/* Container */
.container {
    width: 100%;
    max-width: 500px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 50px 40px;
    position: relative;
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* States */
.state {
    display: none;
    text-align: center;
}

.state.active {
    display: block;
    animation: fadeIn 0.4s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Spinner */
.spinner {
    width: 60px;
    height: 60px;
    margin: 0 auto 30px;
    border: 4px solid rgba(30, 58, 138, 0.1);
    border-top-color: #1e3a8a;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Icon Container */
.icon-container {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.icon-container.success {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: white;
}

.icon-container.error {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    color: white;
}

.icon-container.warning {
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
    color: white;
}

/* Typography */
.title {
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 15px;
}

.title.success {
    color: #059669;
}

.title.error {
    color: #dc2626;
}

.title.warning {
    color: #d97706;
}

.subtitle {
    font-size: 16px;
    color: #64748b;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Form */
.reset-form {
    margin-top: 30px;
    text-align: left;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 8px;
}

.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.form-group input {
    width: 100%;
    padding: 14px 45px 14px 16px;
    font-size: 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.form-group input:invalid:not(:placeholder-shown) {
    border-color: #ef4444;
}

.toggle-password {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    transition: color 0.2s;
}

.toggle-password:hover {
    color: #1e3a8a;
}

.eye-icon {
    width: 20px;
    height: 20px;
}

.form-hint {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: #64748b;
}

.error-message {
    background: #fef2f2;
    border-left: 4px solid #ef4444;
    padding: 12px 16px;
    border-radius: 8px;
    color: #991b1b;
    font-size: 14px;
    margin-bottom: 20px;
}

/* Buttons */
.btn {
    display: inline-block;
    width: 100%;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-secondary {
    background: white;
    color: #1e3a8a;
    border: 2px solid #e2e8f0;
    margin-top: 12px;
}

.btn-secondary:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

/* Info Box */
.info-box {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-left: 5px solid #f59e0b;
    padding: 20px;
    border-radius: 12px;
    margin: 25px 0;
    text-align: left;
}

.info-box.success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border-left-color: #10b981;
}

.info-box.error {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border-left-color: #ef4444;
}

.info-box.warning {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-left-color: #f59e0b;
}

.info-box h3 {
    font-size: 16px;
    font-weight: 700;
    color: #78350f;
    margin-bottom: 10px;
}

.info-box.success h3 {
    color: #065f46;
}

.info-box.error h3 {
    color: #991b1b;
}

.info-box p {
    font-size: 14px;
    color: #78350f;
    line-height: 1.6;
    margin: 0;
}

.info-box.success p {
    color: #065f46;
}

.info-box.error p {
    color: #991b1b;
}

.info-box ul {
    margin: 10px 0 0 20px;
    color: #78350f;
    font-size: 14px;
}

.info-box.error ul {
    color: #991b1b;
}

/* Actions */
.actions {
    margin-top: 30px;
}

/* Footer */
.footer {
    margin-top: 40px;
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
}

.footer-content {
    max-width: 500px;
}

.footer-logo {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
}

.footer-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
    text-decoration: underline;
}

.footer-copyright {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive */
@media (max-width: 600px) {
    .container {
        padding: 40px 25px;
    }

    .title {
        font-size: 24px;
    }

    .subtitle {
        font-size: 15px;
    }

    .btn {
        padding: 14px 20px;
        font-size: 15px;
    }

    .footer-links {
        gap: 15px;
    }
}

/* Password Strength Indicator */
.password-strength {
    margin-top: 8px;
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.password-strength-bar.weak {
    width: 33%;
    background: #ef4444;
}

.password-strength-bar.medium {
    width: 66%;
    background: #f59e0b;
}

.password-strength-bar.strong {
    width: 100%;
    background: #10b981;
}
