/* ============================================
   SIM TECH TRACKER - Authentication Pages Styles
   ============================================ */

/* Auth Page Layout */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-6);
    background:
        radial-gradient(circle at 20% 50%, rgba(94, 179, 228, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(255, 200, 69, 0.1) 0%, transparent 50%),
        linear-gradient(180deg, var(--color-bg-primary) 0%, var(--color-bg-secondary) 100%);
    position: relative;
    overflow: hidden;
}

.auth-page::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    background: url('data:image/svg+xml,<svg width="500" height="500" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(94,179,228,0.08)" stroke-width="1"/></pattern></defs><rect width="500" height="500" fill="url(%23grid)"/><circle cx="250" cy="250" r="200" fill="none" stroke="rgba(94,179,228,0.1)" stroke-width="2"/><circle cx="250" cy="250" r="150" fill="none" stroke="rgba(94,179,228,0.1)" stroke-width="2"/><circle cx="250" cy="250" r="100" fill="none" stroke="rgba(94,179,228,0.1)" stroke-width="2"/></svg>');
    opacity: 0.5;
    animation: rotate 60s linear infinite;
    pointer-events: none;
}

/* Auth Container */
.auth-container {
    width: 100%;
    max-width: 450px;
    position: relative;
    z-index: 1;
}

.auth-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-10);
    box-shadow: var(--shadow-lg);
}

/* Auth Header */
.auth-header {
    text-align: center;
    margin-bottom: var(--space-8);
}

.auth-logo {
    max-width: 200px;
    margin: 0 auto var(--space-6);
    filter: drop-shadow(0 0 20px rgba(94, 179, 228, 0.3));
}

.auth-title {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-2);
    background: linear-gradient(135deg, var(--color-accent-blue), var(--color-accent-yellow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-subtitle {
    color: var(--color-text-secondary);
    font-size: var(--text-base);
}

/* Auth Form */
.auth-form {
    margin-bottom: var(--space-6);
}

.auth-form .form-group:last-of-type {
    margin-bottom: 0;
}

.auth-form .btn {
    width: auto;
    min-width: 200px;
    margin: 0 auto;
    display: block;
}

.form-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    align-items: center;
}

.form-actions .btn {
    width: auto;
    min-width: 200px;
}

.form-link {
    text-align: center;
    margin-top: var(--space-4);
}

.form-link a {
    color: var(--color-accent-blue);
    font-weight: 500;
}

.form-link a:hover {
    color: var(--color-accent-blue-light);
    text-decoration: underline;
}

/* Auth Footer */
.auth-footer {
    text-align: center;
    padding-top: var(--space-6);
    border-top: 1px solid var(--color-border);
}

.auth-footer a {
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
    margin: 0 var(--space-3);
}

.auth-footer a:hover {
    color: var(--color-accent-blue);
}

/* Back to Home Link */
.back-home {
    position: absolute;
    top: var(--space-6);
    left: var(--space-6);
    z-index: 10;
}

.back-home a {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--color-text-secondary);
    font-weight: 500;
    transition: all var(--transition-fast);
}

.back-home a:hover {
    color: var(--color-accent-blue);
    transform: translateX(-4px);
}

.back-home svg {
    width: 20px;
    height: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .auth-card {
        padding: var(--space-6);
    }

    .auth-title {
        font-size: var(--text-2xl);
    }

    .back-home {
        position: static;
        margin-bottom: var(--space-6);
    }
}