* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary: #1e293b;
    --secondary: #3b82f6;
    --accent: #ef4444;
    --light: #f8fafc;
    --dark: #0f172a;
    --success: #10b981;
    --error: #ef4444;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-500: #6b7280;
    --gray-600: #475569;
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --transition: all 0.2s ease-in-out;
}

body {
    background-color: var(--light);
    color: var(--dark);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.container {
    width: 100%;
    max-width: 420px;
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transition: var(--transition);
}

.container:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.header {
    background-color: var(--primary);
    color: white;
    padding: 2rem;
    text-align: center;
}

.header .logo {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--secondary);
}

.header h1 {
    font-size: 2.25rem;
    font-weight: bold;
    letter-spacing: 0.025em;
    margin-bottom: 0.25rem;
}

.header p {
    font-size: 0.875rem;
    opacity: 0.9;
    color: #e2e8f0;
}

.form-container {
    padding: 2rem;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    color: var(--secondary);
    margin-bottom: 1rem;
    cursor: pointer;
    font-size: 0.875rem;
    transition: var(--transition);
    text-decoration: none;
    font-weight: 500;
}

.back-btn:hover {
    color: var(--accent);
}

.back-btn i {
    margin-right: 0.5rem;
    font-size: 0.875rem;
}

.user-info {
    background-color: var(--gray-100);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 500;
    color: var(--gray-600);
    font-size: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark);
    font-size: 0.875rem;
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-500);
    font-size: 1.25rem;
    z-index: 2;
}

.form-control {
    width: 100%;
    padding: 0.875rem 5.5rem 0.875rem 3rem;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
    background-color: white;
    position: relative;
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary);
    background-color: white;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.password-toggle {
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--gray-500);
    z-index: 2;
    font-size: 1rem;
    width: 1.25rem;
    height: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: var(--transition);
    line-height: 1;
    margin: 0;
}

.password-toggle:hover {
    color: var(--secondary);
    background-color: var(--gray-100);
}

.checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.checkbox-group input {
    margin-right: 0.75rem;
    width: 1.125rem;
    height: 1.125rem;
    accent-color: var(--secondary);
}

.checkbox-group label {
    font-weight: normal;
    color: var(--gray-600);
    font-size: 0.875rem;
    cursor: pointer;
}

.btn {
    display: block;
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    text-decoration: none;
    margin-bottom: 1rem;
}

.btn-primary {
    background-color: var(--secondary);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background-color: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-accent {
    background-color: var(--accent);
    color: white;
}

.btn-accent:hover:not(:disabled) {
    background-color: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.links {
    display: flex;
    justify-content: space-between;
    margin-top: 1.5rem;
    font-size: 0.875rem;
}

.links a {
    color: var(--secondary);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

.links a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.otp-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    gap: 0.25rem;
}

.otp-digit {
    flex: none;
    width: calc(25% - 0.375rem);
    min-width: 2.75rem;
    height: 3.5rem;
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    background-color: white;
    transition: var(--transition);
    color: var(--dark);
}

.otp-digit:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.notification {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    /* display: none; */
    font-weight: 500;
}

.notification.success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.notification.error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.logo {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--secondary);
}

@media (max-width: 480px) {
    body {
        padding: 0.5rem;
    }
    
    .container {
        border-radius: 12px;
        box-shadow: var(--shadow);
    }
    
    .header {
        padding: 1.5rem 1rem;
    }
    
    .header h1 {
        font-size: 1.875rem;
    }
    
    .form-container {
        padding: 1.5rem 1rem;
    }
    
    .otp-container {
        gap: 0.125rem;
    }
    
    .otp-digit {
        width: calc(25% - 0.1875rem);
        min-width: 2.5rem;
        height: 3rem;
        font-size: 1.25rem;
    }
    
    .links {
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
    }
    
    .back-btn {
        margin-bottom: 0.75rem;
    }
}
