/* BioLink System - Authentication Pages Styles */

/* ========================================
   Auth Layout
   ======================================== */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
    background: var(--bg-dark);
    position: relative;
    overflow: hidden;
}

/* Animated Background */
.auth-page::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 20% 80%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(236, 72, 153, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.05) 0%, transparent 70%);
    animation: bgFloat 20s ease-in-out infinite;
    z-index: 0;
}

@keyframes bgFloat {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(30px, -30px) rotate(5deg);
    }

    66% {
        transform: translate(-20px, 20px) rotate(-3deg);
    }
}

/* Floating Shapes */
.auth-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.auth-shape {
    position: absolute;
    border-radius: var(--radius-lg);
    opacity: 0.1;
    animation: float 8s ease-in-out infinite;
}

.auth-shape:nth-child(1) {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--primary), transparent);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.auth-shape:nth-child(2) {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, var(--accent), transparent);
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.auth-shape:nth-child(3) {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    bottom: 15%;
    left: 20%;
    animation-delay: 4s;
    border-radius: var(--radius-full);
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

/* ========================================
   Auth Card
   ======================================== */
.auth-container {
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 1;
}

.auth-card {
    background: rgba(26, 26, 46, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(45, 45, 74, 0.5);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

.auth-logo {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.auth-logo-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: var(--radius-lg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: white;
    margin-bottom: var(--space-md);
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.3);
}

.auth-logo h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: var(--space-xs);
}

.auth-logo p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

/* ========================================
   Auth Form
   ======================================== */
.auth-form {
    margin-bottom: var(--space-lg);
}

.auth-form .form-group {
    margin-bottom: var(--space-md);
}

.auth-form .form-input {
    background: var(--bg-dark);
    border-color: rgba(45, 45, 74, 0.8);
    padding: var(--space-md);
    font-size: 1rem;
}

.auth-form .form-input:focus {
    border-color: var(--primary);
    background: rgba(15, 15, 35, 0.8);
}

.auth-form .btn-primary {
    width: 100%;
    padding: var(--space-md);
    font-size: 1rem;
    font-weight: 600;
    margin-top: var(--space-sm);
}

/* Password Toggle */
.password-toggle {
    position: relative;
}

.password-toggle .form-input {
    padding-right: 48px;
}

.password-toggle-btn {
    position: absolute;
    right: var(--space-md);
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    padding: var(--space-xs);
    transition: color var(--transition-fast);
}

.password-toggle-btn:hover {
    color: var(--text-primary);
}

/* ========================================
   Auth Extras
   ======================================== */
.auth-divider {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin: var(--space-lg) 0;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.auth-footer {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.auth-footer a {
    color: var(--primary);
    font-weight: 500;
    transition: color var(--transition-fast);
}

.auth-footer a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* Social Login */
.social-login {
    display: flex;
    gap: var(--space-sm);
}

.social-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-weight: 500;
    transition: all var(--transition-fast);
}

.social-btn:hover {
    background: var(--bg-hover);
    border-color: var(--text-muted);
}

.social-btn i {
    font-size: 1.25rem;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 480px) {
    .auth-card {
        padding: var(--space-lg);
    }

    .auth-logo-icon {
        width: 56px;
        height: 56px;
        font-size: 1.5rem;
    }

    .auth-logo h1 {
        font-size: 1.5rem;
    }
}