
    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    html {
        height: 100%;
        background: #000000;
    }
    
    body {
        min-height: 100%;
        margin: 0;
        background: #000000;
    }

    .auth-page {
        min-height: 100vh;
        min-height: 100dvh;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 40px 20px;
        background: #000000;
        position: relative;
    }

    .auth-page::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: 
            radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.03) 0%, transparent 50%),
            radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.02) 0%, transparent 50%),
            radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.015) 0%, transparent 40%);
        pointer-events: none;
    }

    .floating-shapes {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        overflow: hidden;
        pointer-events: none;
    }

    .shape {
        position: absolute;
        border-radius: 50%;
        background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
        animation: float 20s ease-in-out infinite;
    }

    .shape:nth-child(1) { width: 300px; height: 300px; top: -150px; left: -100px; animation-delay: 0s; }
    .shape:nth-child(2) { width: 200px; height: 200px; top: 50%; right: -100px; animation-delay: -5s; }
    .shape:nth-child(3) { width: 150px; height: 150px; bottom: -75px; left: 30%; animation-delay: -10s; }
    .shape:nth-child(4) { width: 100px; height: 100px; top: 20%; left: 10%; animation-delay: -7s; }
    .shape:nth-child(5) { width: 80px; height: 80px; bottom: 20%; right: 20%; animation-delay: -3s; }

    @keyframes float {
        0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.5; }
        50% { transform: translateY(-30px) rotate(180deg); opacity: 0.8; }
    }

    .auth-card {
        width: 100%;
        max-width: 440px;
        margin: auto 0;
        background: #141414;
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-radius: 24px;
        border: 1px solid rgba(255, 255, 255, 0.06);
        box-shadow: 
            0 25px 50px -12px rgba(0, 0, 0, 0.8),
            0 0 0 1px rgba(255, 255, 255, 0.03) inset;
        padding: 40px;
        position: relative;
        z-index: 10;
        animation: slideUp 0.6s ease-out;
    }

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

    .auth-logo {
        text-align: center;
        margin-bottom: 32px;
    }

    .auth-logo .logo-icon {
        width: 70px;
        height: 70px;
        background: #1a1a1a;
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 16px;
        font-size: 32px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    }

    .auth-logo h1 {
        font-size: 28px;
        font-weight: 700;
        color: #f5f5f7;
        margin-bottom: 4px;
        letter-spacing: -0.5px;
    }

    .auth-logo p {
        color: #86868b;
        font-size: 14px;
    }

    .auth-tabs {
        display: flex;
        background: rgba(255, 255, 255, 0.04);
        border-radius: 14px;
        padding: 4px;
        margin-bottom: 28px;
        border: 1px solid rgba(255, 255, 255, 0.06) !important;
    }

    .tab-btn {
        flex: 1;
        padding: 12px 20px;
        border: none !important;
        outline: none !important;
        background: transparent;
        color: #86868b;
        font-size: 14px;
        font-weight: 600;
        border-radius: 10px;
        cursor: pointer;
        transition: all 0.3s ease;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
    }

    .tab-btn:hover {
        color: #f5f5f7;
    }

    .tab-btn.active {
        background: rgba(255, 255, 255, 0.1);
        color: #fff;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
        border: none !important;
        border-bottom: none !important;
        margin-bottom: 0 !important;
    }

    .tab-content {
        display: none;
        animation: fadeIn 0.4s ease;
    }

    .tab-content.active {
        display: block;
    }

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

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

    .form-group label {
        display: block;
        color: #d1d1d6;
        font-size: 13px;
        font-weight: 500;
        margin-bottom: 8px;
    }

    .form-group label .hint {
        color: #6e6e73;
        font-weight: 400;
        font-size: 11px;
    }

    .input-wrapper {
        position: relative;
    }

    .input-wrapper .input-icon {
        position: absolute;
        left: 14px;
        top: 50%;
        transform: translateY(-50%);
        color: #6e6e73;
        pointer-events: none;
        transition: color 0.3s ease;
        z-index: 1;
    }

    .input-wrapper:focus-within .input-icon {
        color: #f5f5f7;
    }

    .auth-card .form-group input,
    .auth-card .form-group input.input,
    .input {
        width: 100%;
        padding: 14px 14px 14px 46px;
        background: rgba(255, 255, 255, 0.04) !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        border-radius: 12px !important;
        color: #f5f5f7 !important;
        font-size: 14px;
        transition: all 0.3s ease;
    }

    .auth-card .form-group input::placeholder,
    .input::placeholder {
        color: #6e6e73 !important;
    }

    .auth-card .form-group input:focus,
    .input:focus {
        outline: none;
        border-color: rgba(255, 255, 255, 0.2) !important;
        background: rgba(255, 255, 255, 0.06) !important;
        box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.05) !important;
    }

    .form-row {
        display: flex;
        gap: 12px;
    }

    .form-row .form-group {
        flex: 1;
    }

    .btn {
        width: 100%;
        padding: 14px 24px;
        border: none;
        border-radius: 12px;
        font-size: 15px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
    }

    .btn-primary {
        background: #f5f5f7;
        color: #000000;
        box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
    }

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(255, 255, 255, 0.15);
        background: #ffffff;
    }

    .btn-primary:active {
        transform: translateY(0);
    }

    .btn-secondary {
        background: linear-gradient(135deg, #10b981, #059669);
        color: #fff;
        box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    }

    .btn-secondary:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
    }

    .alert {
        padding: 14px 16px;
        border-radius: 12px;
        margin-bottom: 20px;
        font-size: 13px;
        display: flex;
        align-items: flex-start;
        gap: 10px;
        animation: shake 0.5s ease;
    }

    @keyframes shake {
        0%, 100% { transform: translateX(0); }
        20%, 60% { transform: translateX(-5px); }
        40%, 80% { transform: translateX(5px); }
    }

    .alert-error {
        background: rgba(239, 68, 68, 0.12);
        border: 1px solid rgba(239, 68, 68, 0.25);
        color: #fca5a5;
    }

    .alert-success {
        background: rgba(34, 197, 94, 0.12);
        border: 1px solid rgba(34, 197, 94, 0.25);
        color: #86efac;
        animation: none;
    }

    .alert-icon {
        font-size: 18px;
        flex-shrink: 0;
    }

    .divider {
        display: flex;
        align-items: center;
        margin: 24px 0;
        color: #6e6e73;
        font-size: 12px;
    }

    .divider::before,
    .divider::after {
        content: '';
        flex: 1;
        height: 1px;
        background: rgba(255, 255, 255, 0.06);
    }

    .divider span {
        padding: 0 16px;
    }

    .terms-checkbox {
        margin-top: 20px;
        margin-bottom: 24px;
        padding-top: 16px;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
    }

    .custom-checkbox {
        display: flex;
        align-items: flex-start;
        gap: 12px;
        cursor: pointer;
        user-select: none;
    }

    .custom-checkbox input[type="checkbox"] {
        position: absolute;
        opacity: 0;
        width: 0;
        height: 0;
    }

    .custom-checkbox .checkmark {
        flex-shrink: 0;
        width: 20px;
        height: 20px;
        border: 2px solid rgba(255, 255, 255, 0.15);
        border-radius: 4px;
        background: rgba(255, 255, 255, 0.04);
        transition: all 0.2s ease;
        position: relative;
        margin-top: 2px;
    }

    .custom-checkbox:hover .checkmark {
        border-color: rgba(255, 255, 255, 0.3);
    }

    .custom-checkbox input[type="checkbox"]:checked + .checkmark {
        background: #f5f5f7;
        border-color: #f5f5f7;
    }

    .custom-checkbox input[type="checkbox"]:checked + .checkmark::after {
        content: '';
        position: absolute;
        left: 6px;
        top: 2px;
        width: 5px;
        height: 10px;
        border: solid #000000;
        border-width: 0 2px 2px 0;
        transform: rotate(45deg);
    }

    .custom-checkbox .checkbox-text {
        font-size: 13px;
        color: #86868b;
        line-height: 1.5;
    }

    .custom-checkbox .checkbox-text a {
        color: #d1d1d6;
        text-decoration: underline;
        transition: color 0.2s ease;
    }

    .custom-checkbox .checkbox-text a:hover {
        color: #f5f5f7;
    }

    .checkbox-error {
        margin-top: 8px;
        padding: 8px 12px;
        background: rgba(239, 68, 68, 0.12);
        border: 1px solid rgba(239, 68, 68, 0.25);
        border-radius: 6px;
        color: #f87171;
        font-size: 12px;
    }

    @media (max-width: 480px) {
        .auth-card {
            padding: 30px 24px;
            border-radius: 20px;
        }
        
        .form-row {
            flex-direction: column;
            gap: 0;
        }
        
        .auth-logo .logo-icon {
            width: 60px;
            height: 60px;
            font-size: 28px;
        }
        
        .auth-logo h1 {
            font-size: 24px;
        }
    }
