/**
 * ══════════════════════════════════════════════════════════════════════
 * Markov Innovations - Authentication Pages Styles
 * Dark Industrial IoT Hardware Theme
 * ══════════════════════════════════════════════════════════════════════
 */

/* Auth Container */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
    background: var(--color-bg);
}

/* Animated Background */
.auth-background {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: float 20s infinite ease-in-out;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #00B3FF 0%, #0094E0 100%);
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #1AE3E0 0%, #00B3FF 100%);
    bottom: -50px;
    right: -50px;
    animation-delay: 7s;
}

.orb-3 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, #0094E0 0%, #00B3FF 100%);
    top: 50%;
    right: 20%;
    animation-delay: 14s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

/* Auth Card */
.auth-card {
    position: relative;
    z-index: 1;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    padding: 48px;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
}

/* Auth Header */
.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-logo svg {
    width: 100%;
    height: 100%;
    fill: var(--color-accent);  /* Cyan - welcoming on auth pages */
    filter: drop-shadow(0 0 16px var(--color-glow));
    animation: logo-pulse 3s ease-in-out infinite;
}

@keyframes logo-pulse {
    0%, 100% { 
        filter: drop-shadow(0 0 12px var(--color-glow)); 
    }
    50% { 
        filter: drop-shadow(0 0 20px var(--color-glow)); 
    }
}

.auth-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 8px;
}

.auth-header p {
    color: var(--color-text-secondary);
    font-size: 16px;
}

/* Form Styles */
.auth-form {
    margin-top: 24px;
}

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

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    background: var(--color-bg);
    border: 2px solid var(--color-border);
    border-radius: 8px;
    font-size: 16px;
    color: var(--color-text-primary);
    transition: all 0.2s;
    font-family: inherit;
}

.form-group input:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px var(--color-glow);
    background: var(--color-surface);
}

.form-group input::placeholder {
    color: var(--color-text-disabled);
}

.form-hint {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: var(--color-text-disabled);
}

.form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: var(--color-text-primary);
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Buttons */
.btn-primary {
    background: var(--gradient-button);
    color: white;
    border: 1px solid var(--color-accent);
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px var(--color-glow);
}

.btn-full {
    width: 100%;
}

.btn-google {
    background: var(--color-bg);
    color: var(--color-text-primary);
    border: 2px solid var(--color-border);
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.btn-google:hover {
    border-color: var(--color-accent);
    background: var(--color-surface);
    box-shadow: 0 0 15px rgba(0, 179, 255, 0.2);
}

.google-icon {
    width: 20px;
    height: 20px;
}

/* Alerts */
.alert {
    padding: 14px 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    line-height: 1.5;
}

.alert-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border-left: 4px solid #ef4444;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border-left: 4px solid #10b981;
}

.alert-warning {
    background: #fef3c7;
    color: #92400e;
    border-left: 4px solid #f59e0b;
}

.alert-info {
    background: #dbeafe;
    color: #1e40af;
    border-left: 4px solid #3b82f6;
}

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 24px 0;
    color: var(--color-text-disabled);
    font-size: 14px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--color-border);
}

.auth-divider span {
    padding: 0 16px;
}

/* Auth Footer */
.auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: var(--color-text-secondary);
}

.auth-footer a {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-shadow: 0 0 8px var(--color-glow);
}

/* Links */
.link-secondary {
    color: var(--color-accent);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.link-secondary:hover {
    text-shadow: 0 0 8px var(--color-glow);
}

/* Responsive */
@media (max-width: 640px) {
    .auth-card {
        padding: 32px 24px;
        max-height: 95vh;
    }
    
    .auth-header h1 {
        font-size: 24px;
    }
    
    .auth-logo {
        font-size: 48px;
    }
    
    .form-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .auth-container {
        padding: 10px;
    }
    
    .auth-card {
        padding: 24px 20px;
    }
}

/* Flash Message Animation */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.flash-message,
.alert {
    animation: slideDown 0.3s ease-out;
}


