@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #040A2D 0%, #1D3557 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.recovery-container {
    width: 100%;
    max-width: 480px;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.recovery-card {
    background: #FFFFFF;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    padding: 40px 30px;
    width: 100%;
}

.recovery-header {
    text-align: center;
    margin-bottom: 32px;
}

.logo-container {
    margin-bottom: 24px;
}

.logo {
    width: 120px;
    height: auto;
    margin: auto;
}

.recovery-title {
    font-size: 28px;
    font-weight: 700;
    color: #1D3557;
    margin-bottom: 8px;
}

.recovery-subtitle {
    font-size: 14px;
    color: #6B7280;
    line-height: 1.5;
}

.recovery-form {
    width: 100%;
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1D3557;
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    background: #FFFFFF;
}

.form-control:focus {
    outline: none;
    border-color: #E63946;
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1);
}

.form-control::placeholder {
    color: #9CA3AF;
}

.password-wrapper {
    position: relative;
    width: 100%;
}

.password-wrapper .form-control {
    padding-right: 45px;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #6B7280;
    font-size: 18px;
    transition: color 0.3s ease;
    padding: 8px;
}

.toggle-password:hover {
    color: #E63946;
}

.code-input-container {
    margin-bottom: 16px;
}

.code-input {
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 8px;
    padding: 16px;
}

.resend-section {
    text-align: center;
    margin-top: 16px;
}

.resend-timer {
    font-size: 13px;
    color: #6B7280;
    margin-bottom: 12px;
}

.resend-timer span {
    font-weight: 600;
    color: #E63946;
}

.btn-resend {
    background: transparent;
    color: #E63946;
    border: 2px solid #E63946;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 12px;
}

.btn-resend:hover {
    background: #E63946;
    color: #FFFFFF;
}

.btn-resend:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.spam-warning {
    font-size: 12px;
    color: #9CA3AF;
    font-style: italic;
}

.password-requirements {
    margin-top: 12px;
    padding: 12px;
    background: #F9FAFB;
    border-radius: 8px;
    border-left: 4px solid #E5E7EB;
}

.requirement-title {
    font-size: 13px;
    font-weight: 600;
    color: #1D3557;
    margin-bottom: 8px;
}

.requirements-list {
    list-style: none;
    padding: 0;
}

.requirements-list li {
    font-size: 12px;
    color: #6B7280;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
}

.requirements-list li i {
    font-size: 6px;
    margin-right: 8px;
}

.requirements-list li.valid {
    color: #10B981;
}

.requirements-list li.valid i {
    color: #10B981;
}

.checkbox-group {
    margin-top: 20px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 2px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #E63946;
}

.checkbox-text {
    font-size: 14px;
    color: #4B5563;
    line-height: 1.5;
}

.btn-recovery {
    width: 100%;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    color: #FFFFFF;
    background: linear-gradient(135deg, #E63946 0%, #d62839 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
}

.btn-recovery:hover {
    background: linear-gradient(135deg, #d62839 0%, #c01829 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(230, 57, 70, 0.3);
}

.btn-recovery:disabled {
    background: #D1D5DB;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-recovery:active {
    transform: translateY(0);
}

.recovery-footer {
    text-align: center;
    margin-top: 24px;
}

.back-link {
    color: #6B7280;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.back-link:hover {
    color: #E63946;
}

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background: #D1FAE5;
    color: #065F46;
    border: 1px solid #6EE7B7;
}

.alert-error {
    background: #FEE2E2;
    color: #991B1B;
    border: 1px solid #FCA5A5;
}

.alert-info {
    background: #DBEAFE;
    color: #1E40AF;
    border: 1px solid #93C5FD;
}

@media (max-width: 576px) {
    .recovery-card {
        padding: 32px 24px;
    }
    
    .recovery-title {
        font-size: 24px;
    }
    
    .logo {
        width: 100px;
    }
}