* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

:root {
    --primary-white: #ffffff;
    --primary-black: #000000;
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #e5e5e5;
    --gray-300: #d4d4d4;
    --gray-400: #a3a3a3;
    --gray-500: #737373;
    --gray-600: #525252;
    --gray-700: #404040;
    --gray-800: #262626;
    --gray-900: #171717;
    --accent-color: #4a5568;
    --accent-hover: #2d3748;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: var(--gray-50);
    color: var(--gray-800);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.main-content {
    padding-top: 80px;
    padding-bottom: 5rem;
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

.recovery-container {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    animation: slideInUp 0.6s ease-out;
}

@media (min-width: 1400px) {
    .recovery-container {
        max-width: 550px;
    }
}

@media (min-width: 1600px) {
    .recovery-container {
        max-width: 600px;
    }
}

.recovery-header {
    text-align: center;
    margin-bottom: 3rem;
}

.recovery-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-black);
    margin-bottom: 0.5rem;
    line-height: 1.1;
}

.recovery-header p {
    font-size: 1.1rem;
    color: var(--gray-600);
}

.recovery-card {
    background: var(--primary-white);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
}

.recovery-logo {
    text-align: center;
    margin-bottom: 2.5rem;
}

.recovery-logo-content {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.recovery-logo-text {
    font-weight: 800;
    font-size: 2rem;
    color: var(--primary-black);
}

.recovery-form {
    margin-top: 1.5rem;
}

.form-group {
    position: relative;
    margin-bottom: 2.5rem;
}

.input-container {
    position: relative;
}

.form-input {
    width: 100%;
    padding: 1.2rem 1.5rem;
    font-size: 1rem;
    background-color: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-radius: 10px;
    color: var(--gray-800);
    transition: var(--transition);
    outline: none;
}

.form-input:focus {
    border-color: var(--accent-color);
    background-color: var(--primary-white);
    box-shadow: 0 0 0 3px rgba(74, 85, 104, 0.1);
}

.form-input:disabled {
    background-color: var(--gray-100);
    cursor: not-allowed;
}

.form-label {
    position: absolute;
    top: 1.2rem;
    left: 1.5rem;
    font-size: 1rem;
    color: var(--gray-500);
    transition: var(--transition);
    pointer-events: none;
    background-color: transparent;
    z-index: 2;
    padding: 0 0.2rem;
}

.form-input:focus + .form-label,
.form-input:not(:placeholder-shown) + .form-label {
    top: -0.6rem;
    left: 1rem;
    font-size: 0.85rem;
    color: var(--accent-color);
    background-color: var(--primary-white);
    z-index: 3;
}

.form-input::placeholder {
    color: transparent;
}

.recovery-status {
    text-align: center;
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 10px;
    font-weight: 500;
    display: none;
}

.recovery-status.error {
    background-color: rgba(245, 101, 101, 0.1);
    color: #f56565;
    display: block;
}

.recovery-submit-btn {
    background-color: var(--accent-color);
    color: var(--primary-white);
    border: none;
    padding: 1.2rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
}

.recovery-submit-btn:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.recovery-submit-btn:active {
    transform: translateY(0);
}

.recovery-submit-btn.loading {
    background-color: var(--gray-500);
    cursor: not-allowed;
}

.token-instructions {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: 10px;
}

.token-instructions p {
    margin: 0.3rem 0;
    font-size: 0.95rem;
}

.token-email {
    font-weight: 600;
    color: var(--primary-black);
    font-size: 1rem;
}

.token-inputs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 1rem 0;
}

.token-digit {
    width: 48px;
    height: 60px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    border: 2px solid var(--gray-200);
    border-radius: 10px;
    background: var(--gray-50);
    color: var(--gray-800);
    transition: var(--transition);
}

.token-digit:focus {
    border-color: var(--accent-color);
    background: var(--primary-white);
    box-shadow: 0 0 0 3px rgba(74, 85, 104, 0.1);
    outline: none;
}

.token-resend {
    text-align: center;
    margin-top: 1.5rem;
}

.resend-btn {
    background: none;
    border: none;
    color: var(--accent-color);
    font-weight: 500;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.resend-btn:hover {
    background: var(--gray-100);
    color: var(--accent-hover);
}

.resend-btn:disabled {
    color: var(--gray-400);
    cursor: not-allowed;
}

.recovery-success {
    text-align: center;
    padding: 2rem 1rem;
}

.success-icon {
    font-size: 4rem;
    color: #48bb78;
    margin-bottom: 1.5rem;
    animation: slideInUp 0.4s ease;
}

.recovery-success h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-black);
    margin-bottom: 1rem;
}

.recovery-success p {
    color: var(--gray-600);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.recovery-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
}

.back-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.back-link:hover {
    color: var(--accent-hover);
    gap: 0.8rem;
}

@media (max-width: 991px) {
    .main-content {
        padding-top: 60px;
    }
    .recovery-header h1 {
        font-size: 2.2rem;
    }
    .recovery-card {
        padding: 2.5rem;
    }
}

@media (max-width: 767px) {
    .main-content {
        padding-top: 50px;
        padding-bottom: 3rem;
    }
    .recovery-header h1 {
        font-size: 2rem;
    }
    .recovery-header p {
        font-size: 1rem;
    }
    .recovery-card {
        padding: 2rem;
    }
    .recovery-logo-content {
        flex-direction: column;
        gap: 0.5rem;
    }
    .recovery-logo-text {
        font-size: 1.8rem;
    }
    .token-inputs {
        gap: 0.3rem;
    }
    .token-digit {
        width: 42px;
        height: 54px;
        font-size: 1.3rem;
    }
}

@media (max-width: 575px) {
    .main-content {
        padding-top: 40px;
    }
    .recovery-header h1 {
        font-size: 1.8rem;
    }
    .recovery-header p {
        font-size: 0.95rem;
    }
    .recovery-card {
        padding: 1.5rem;
    }
    .section-container {
        padding: 0 4%;
    }
    .token-inputs {
        flex-wrap: wrap;
    }
    .token-digit {
        width: 40px;
        height: 50px;
        font-size: 1.2rem;
    }
}

@media (max-width: 424px) {
    .main-content {
        padding-top: 30px;
    }
    .recovery-header h1 {
        font-size: 1.6rem;
    }
    .recovery-card {
        padding: 1.2rem;
        border-radius: 15px;
    }
    .recovery-logo-text {
        font-size: 1.6rem;
    }
    .form-input {
        padding: 1rem 1.2rem;
        font-size: 0.9rem;
    }
    .form-label {
        top: 1rem;
        left: 1.2rem;
        font-size: 0.9rem;
    }
    .form-input:focus + .form-label,
    .form-input:not(:placeholder-shown) + .form-label {
        top: -0.5rem;
        left: 0.8rem;
        font-size: 0.8rem;
    }
    .recovery-submit-btn {
        padding: 1rem;
        font-size: 0.9rem;
    }
    .token-digit {
        width: 36px;
        height: 46px;
        font-size: 1.1rem;
    }
}

@media (max-width: 374px) {
    .main-content {
        padding-top: 25px;
    }
    .recovery-header h1 {
        font-size: 1.4rem;
    }
    .recovery-header p {
        font-size: 0.9rem;
    }
    .recovery-card {
        padding: 1rem;
    }
    .recovery-logo-text {
        font-size: 1.4rem;
    }
    .token-inputs {
        gap: 0.2rem;
    }
    .token-digit {
        width: 32px;
        height: 42px;
        font-size: 1rem;
    }
}