/* Lensy AR Auth Styles */
/* Imports variables from landing.css (must be included first) */

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-image: radial-gradient(circle at top right, rgba(112, 0, 255, 0.1), transparent 40%),
                radial-gradient(circle at bottom left, rgba(0, 212, 255, 0.1), transparent 40%);
    overflow-x: hidden;
}

/* Auth Container & Card */
.auth-container {
    width: 100%;
    max-width: 500px;
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.auth-card {
    width: 100%;
    background: rgba(0, 0, 0, 0.6); /* Much darker background for contrast */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    animation: fadeInUp 0.5s ease-out;
}

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

/* Header */
.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo {
    height: 60px;
    width: auto;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px rgba(112, 0, 255, 0.3));
}

.auth-header h1 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.auth-header h2 {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.6);
    font-weight: 400;
}

/* Form Elements */
.form-group {
    margin-bottom: 1.2rem;
    position: relative;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
    font-weight: 500;
}

.input-group {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,0.4);
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.form-control {
    width: 100%;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    padding: 0.8rem 1rem 0.8rem 2.8rem; /* space for icon */
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: var(--font-main);
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary-color);
    background: rgba(255,255,255,0.08);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.1);
}

.form-control:focus + .input-icon,
.input-group:focus-within .input-icon {
    color: var(--secondary-color);
}

/* Checkbox */
.form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
}

.form-check input {
    accent-color: var(--primary-color);
}

/* Button */
.auth-btn {
    width: 100%;
    padding: 0.9rem;
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

/* Footer Link */
.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.5);
}

.auth-footer a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.auth-footer a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Register Page Optimizations (Macbook/Laptop) */
.register-container .auth-card {
    max-width: 800px; /* Wider to accommodate grid */
    padding: 2rem 3rem;
}

/* Grid Layout for Form Rows */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-text {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
    margin-top: 0.4rem;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    align-items: center;
    gap: 0.5rem;
}

.alert-danger {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: #ff6b6b;
}

.alert-success {
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid rgba(40, 167, 69, 0.3);
    color: #51cf66;
}

/* Responsive */
@media (max-width: 768px) {
    .register-container .auth-card {
        padding: 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr; /* Stack on mobile */
        gap: 0;
    }
}
