/**
 * Reset Password Component Styles
 */

/* Reset Header */
.mtune-reset-header {
    text-align: center;
    margin-bottom: var(--mtune-space-xl);
}

.mtune-reset-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto var(--mtune-space-lg) auto;
    background: linear-gradient(135deg, var(--mtune-primary), var(--mtune-accent));
    border-radius: var(--mtune-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: iconAppear 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mtune-reset-icon svg {
    width: 32px;
    height: 32px;
    color: white;
}

.mtune-reset-icon.success {
    background: linear-gradient(135deg, var(--mtune-success), #00a843);
}

.mtune-reset-icon.animate svg {
    animation: checkmarkDraw 0.6s ease-out 0.2s both;
}

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

@keyframes checkmarkDraw {
    from {
        stroke-dashoffset: 100;
        opacity: 0;
    }
    to {
        stroke-dashoffset: 0;
        opacity: 1;
    }
}

.mtune-reset-title {
    font-family: var(--mtune-font-display);
    font-size: var(--mtune-text-2xl);
    font-weight: 700;
    color: var(--mtune-text-primary);
    margin-bottom: var(--mtune-space-sm);
}

.mtune-reset-subtitle {
    font-size: var(--mtune-text-sm);
    color: var(--mtune-text-secondary);
    line-height: 1.6;
}

.mtune-reset-subtitle span {
    color: var(--mtune-accent);
    font-weight: 500;
}

/* Code Inputs */
.mtune-code-inputs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--mtune-space-sm);
    margin-bottom: var(--mtune-space-md);
}

.mtune-code-input {
    width: 48px;
    height: 56px;
    text-align: center;
    font-size: var(--mtune-text-2xl);
    font-weight: 600;
    font-family: var(--mtune-font-display);
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid var(--mtune-glass-border);
    border-radius: var(--mtune-radius-md);
    color: var(--mtune-text-primary);
    transition: all var(--mtune-transition-fast);
    caret-color: var(--mtune-primary);
}

.mtune-code-input:focus {
    outline: none;
    border-color: var(--mtune-primary);
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 0 3px rgba(var(--mtune-primary-rgb), 0.2);
}

.mtune-code-input:not(:placeholder-shown) {
    border-color: var(--mtune-accent);
}

.mtune-code-separator {
    font-size: var(--mtune-text-2xl);
    color: var(--mtune-text-tertiary);
    margin: 0 var(--mtune-space-xs);
}

/* Code Timer */
.mtune-code-timer {
    text-align: center;
    margin-bottom: var(--mtune-space-lg);
    font-size: var(--mtune-text-sm);
    color: var(--mtune-text-tertiary);
}

.mtune-code-timer strong {
    color: var(--mtune-accent);
    font-family: var(--mtune-font-display);
}

/* Resend Text */
.mtune-resend-text {
    text-align: center;
    font-size: var(--mtune-text-sm);
    color: var(--mtune-text-tertiary);
    margin-bottom: var(--mtune-space-md);
}

.mtune-link-btn {
    background: none;
    border: none;
    color: var(--mtune-accent);
    cursor: pointer;
    font-size: var(--mtune-text-sm);
    padding: 0;
    transition: color var(--mtune-transition-fast);
}

.mtune-link-btn:hover:not(:disabled) {
    color: var(--mtune-accent-light);
    text-decoration: underline;
}

.mtune-link-btn:disabled {
    color: var(--mtune-text-muted);
    cursor: not-allowed;
}

/* Reset Footer */
.mtune-reset-footer {
    margin-top: var(--mtune-space-xl);
    text-align: center;
}

.mtune-back-to-login {
    display: inline-flex;
    align-items: center;
    gap: var(--mtune-space-xs);
    color: var(--mtune-text-secondary);
    font-size: var(--mtune-text-sm);
    transition: color var(--mtune-transition-fast);
}

.mtune-back-to-login:hover {
    color: var(--mtune-text-primary);
}

/* Password Strength */
.mtune-password-strength {
    margin-top: var(--mtune-space-sm);
}

.mtune-password-strength-bar {
    height: 4px;
    background: var(--mtune-glass-bg);
    border-radius: var(--mtune-radius-full);
    overflow: hidden;
}

.mtune-password-strength-fill {
    height: 100%;
    width: 0;
    border-radius: var(--mtune-radius-full);
    transition: all var(--mtune-transition-normal);
}

.mtune-password-strength-label {
    font-size: var(--mtune-text-xs);
    margin-top: var(--mtune-space-xs);
    display: block;
}

/* Full Width Button */
.mtune-btn-full {
    width: 100%;
    height: 52px;
}

/* Reset Message */
.mtune-reset-message {
    margin-top: var(--mtune-space-md);
    text-align: center;
}

.mtune-reset-message.show {
    animation: messageSlide 0.2s ease-out forwards;
}

/* Step Transitions */
.mtune-reset-step {
    animation: stepFadeIn 0.3s ease-out;
}

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

/* Responsive */
@media (max-width: 639px) {
    .mtune-code-input {
        width: 40px;
        height: 48px;
        font-size: var(--mtune-text-xl);
    }

    .mtune-code-separator {
        margin: 0 2px;
    }

    .mtune-reset-title {
        font-size: var(--mtune-text-xl);
    }
}

/* Autofill Styling Override */
.mtune-reset-password-form input:-webkit-autofill,
.mtune-reset-password-form input:-webkit-autofill:hover,
.mtune-reset-password-form input:-webkit-autofill:focus,
.mtune-reset-password-form input:-webkit-autofill:active,
.mtune-reset-password-form textarea:-webkit-autofill,
.mtune-reset-password-form select:-webkit-autofill {
    -webkit-text-fill-color: #ffffff !important;
    box-shadow: 0 0 0 1000px rgba(0, 0, 0, 0.3) inset !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    transition: background-color 5000s ease-in-out 0s;
}

.mtune-reset-password-form input:-webkit-autofill:focus {
    box-shadow: 0 0 0 1000px rgba(0, 0, 0, 0.4) inset !important;
    border: 1px solid var(--mtune-primary) !important;
}

