/* ==========================================
   HAYLINK AUTH - MODERN GLASS DESIGN
   ========================================== */

:root {
    --primary: #6f42c1;
    --primary-light: #8b5cf6;
    --primary-dark: #5a32a3;
    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.25);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body - BISA SCROLL */
body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 20px 0;
}

/* Animated background waves */
.bg-waves {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.wave {
    position: absolute;
    bottom: -50px;
    left: -50%;
    width: 200%;
    height: 200px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 40%;
    animation: wave 15s infinite linear;
}

.wave:nth-child(2) {
    bottom: -30px;
    animation-duration: 20s;
    opacity: 0.3;
    border-radius: 35%;
}

.wave:nth-child(3) {
    bottom: -20px;
    animation-duration: 25s;
    opacity: 0.2;
    border-radius: 45%;
}

@keyframes wave {
    0% { transform: translateX(0) rotate(0deg); }
    100% { transform: translateX(50%) rotate(360deg); }
}

/* Floating circles */
.floating-circle {
    position: fixed;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    z-index: 0;
    pointer-events: none;
}

.circle-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -100px;
    animation: float 8s ease-in-out infinite;
}

.circle-2 {
    width: 200px;
    height: 200px;
    bottom: -50px;
    left: 10%;
    animation: float 6s ease-in-out infinite reverse;
}

.circle-3 {
    width: 150px;
    height: 150px;
    top: 50%;
    left: -50px;
    animation: float 10s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-30px); }
}

/* Main container - BISA SCROLL */
.auth-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    padding: 15px;
    max-height: 90vh;
    overflow-y: auto;
    margin: auto;
}

/* Glass card */
.auth-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 30px 25px;
    box-shadow: var(--glass-shadow);
    transition: all 0.3s;
}

/* Card lebih kecil untuk register */
.auth-card.register-card {
    padding: 20px;
}

.auth-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* Scrollbar cantik */
.auth-wrapper::-webkit-scrollbar {
    width: 4px;
}

.auth-wrapper::-webkit-scrollbar-track {
    background: transparent;
}

.auth-wrapper::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

/* Logo */
.auth-logo {
    text-align: center;
    margin-bottom: 25px;
}

.auth-logo .icon-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    margin-bottom: 12px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.3); }
    50% { box-shadow: 0 0 0 20px rgba(255, 255, 255, 0); }
}

.auth-logo i {
    font-size: 26px;
    color: white;
}

.auth-logo h2 {
    color: white;
    font-weight: 700;
    font-size: 26px;
    margin: 0;
    letter-spacing: -1px;
}

.auth-logo p {
    color: rgba(255, 255, 255, 0.8);
    margin: 5px 0 0 0;
    font-size: 13px;
}

/* Form */
.form-group {
    margin-bottom: 16px;
    position: relative;
}

.form-label {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 12px;
    margin-bottom: 5px;
    display: block;
    letter-spacing: 0.3px;
}

.input-group {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s;
}

.input-group:focus-within {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1);
}

.input-group-text {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    padding: 10px 12px;
    font-size: 14px;
}

.form-control {
    background: transparent;
    border: none;
    color: white;
    padding: 10px 12px 10px 0;
    font-size: 14px;
    outline: none;
    box-shadow: none;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
}

.form-control:focus {
    background: transparent;
    box-shadow: none;
    color: white;
}

/* Button */
.btn-auth {
    width: 100%;
    padding: 12px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 12px;
    border: none;
    background: white;
    color: var(--primary);
    cursor: pointer;
    transition: all 0.3s;
    letter-spacing: 0.5px;
    margin-top: 5px;
}

.btn-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    background: #f8f9fa;
}

.btn-auth:active {
    transform: scale(0.98);
}

/* Google Button */
.btn-google {
    width: 100%;
    padding: 10px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
}

.btn-google:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.btn-google img {
    width: 18px;
    height: 18px;
}

/* Separator */
.separator {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
}

.separator::before,
.separator::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.separator span {
    padding: 0 15px;
}

/* Links */
.auth-link {
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.auth-link:hover {
    text-decoration: underline;
    color: #f0f0f0;
}

.auth-footer {
    text-align: center;
    margin-top: 15px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
}

/* Alert */
.alert {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    border-radius: 12px;
    padding: 10px 14px;
    margin-bottom: 15px;
    font-size: 13px;
}

.alert-danger {
    background: rgba(220, 53, 69, 0.3);
    border-color: rgba(220, 53, 69, 0.5);
}

.alert-success {
    background: rgba(25, 135, 84, 0.3);
    border-color: rgba(25, 135, 84, 0.5);
}

/* Responsive */
@media (max-width: 480px) {
    .auth-wrapper {
        max-width: 100%;
        padding: 10px;
        max-height: 95vh;
    }
    
    .auth-card {
        padding: 25px 18px;
        border-radius: 20px;
    }
    
    .auth-card.register-card {
        padding: 18px 15px;
    }
    
    .auth-logo h2 {
        font-size: 22px;
    }
    
    .auth-logo .icon-circle {
        width: 50px;
        height: 50px;
    }
    
    .auth-logo i {
        font-size: 22px;
    }
    
    .form-group {
        margin-bottom: 12px;
    }
    
    .btn-auth {
        padding: 10px;
        font-size: 14px;
    }
}