/* Auth Pages Styling - Premium Glassmorphism */

/* Inherit variables from home.css, but define defaults if missing */
:root {
    --auth-card-width: 450px;
    --auth-bg-image: url("https://imortis.lt/wp-content/uploads/2024/09/u9841997848_A_serene_cemetery_during_a_night_with_lamp_a_fami_69be0ed4-af3a-49bc-b59d-0311ed832bcc_2.png");
}

/* Main Container */
.auth-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
    position: relative;
    overflow: hidden;
    background-color: var(--color-bg-primary, #0f172a);
    color: var(--color-text-primary, #f8fafc);
}

/* Background Elements */
.auth-bg-image {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background-image: var(--auth-bg-image);
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.auth-bg-overlay {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, var(--color-bg-primary, #0f172a) 0%, rgba(15, 23, 42, 0.4) 100%);
    z-index: 1;
}

/* Floating Elements Animation (similar to home.css) */
.auth-floating-element {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    z-index: 0;
    opacity: 0.4;
    animation: authFloat 20s ease-in-out infinite;
}

.auth-floating-element:nth-child(1) {
    width: 300px;
    height: 300px;
    top: -50px;
    left: -50px;
    background: radial-gradient(circle, rgba(192, 160, 98, 0.2) 0%, transparent 70%);
    animation-delay: 0s;
}

.auth-floating-element:nth-child(2) {
    width: 400px;
    height: 400px;
    bottom: -100px;
    left: 20%;
    background: radial-gradient(circle, rgba(51, 65, 85, 0.3) 0%, transparent 70%);
    animation-delay: -5s;
}

@keyframes authFloat {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(30px, -50px) rotate(10deg);
    }

    66% {
        transform: translate(-20px, 20px) rotate(-5deg);
    }
}

/* Content Area */
.auth-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    position: relative;
    z-index: 10;
    width: 50%;
}

/* Glassmorphism Card */
.auth-card {
    width: 100%;
    max-width: var(--auth-card-width);
    background: rgba(30, 41, 59, 0.4);
    /* Dark glass */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.5rem;
    padding: 2.5rem;
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(192, 160, 98, 0.05);
    /* Subtle gold glow */
    animation: authFadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes authFadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header */
.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-title {
    font-family: var(--font-display, 'Playfair Display', serif);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text-header, #fff);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.auth-subtitle {
    color: var(--color-text-secondary, #94a3b8);
    font-size: 0.95rem;
}

/* Form Elements */
.auth-form-group {
    margin-bottom: 1.25rem;
}

.auth-input {
    width: 100%;
    padding: 0.875rem 1.25rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    color: var(--color-text-primary, #f8fafc);
    font-family: var(--font-primary, 'Raleway', sans-serif);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.auth-input:focus {
    outline: none;
    border-color: var(--color-accent, #c0a062);
    background: rgba(15, 23, 42, 0.8);
    box-shadow: 0 0 0 3px rgba(192, 160, 98, 0.15);
}

.auth-input::placeholder {
    color: rgba(148, 163, 184, 0.5);
}

/* Buttons */
.auth-btn {
    width: 100%;
    padding: 0.875rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    text-decoration: none;
    border: none;
    font-family: var(--font-primary, 'Raleway', sans-serif);
}

.auth-btn-primary {
    background: linear-gradient(135deg, var(--color-accent, #c0a062) 0%, var(--color-accent-dark, #a38345) 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(192, 160, 98, 0.3);
    margin-top: 1rem;
}

.auth-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(192, 160, 98, 0.4);
    filter: brightness(1.1);
}

.auth-btn-google {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text-primary, #f8fafc);
    margin-bottom: 1.5rem;
}

.auth-btn-google:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    color: var(--color-text-secondary, #94a3b8);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.auth-divider span {
    padding: 0 1rem;
}

/* Links */
.auth-links {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--color-text-secondary, #94a3b8);
}

.auth-link {
    color: var(--color-accent, #c0a062);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.auth-link:hover {
    color: var(--color-accent-light, #e0c080);
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 992px) {

    .auth-bg-image,
    .auth-bg-overlay {
        display: none;
    }

    .auth-content {
        width: 100%;
        padding: 1rem;
    }

    .auth-card {
        max-width: 100%;
        padding: 2rem 1.5rem;
    }
}

/* Light Theme Support (if needed, though premium usually implies dark/rich) */
[data-theme="light"] .auth-container {
    background-color: #f8fafc;
    color: #0f172a;
}

[data-theme="light"] .auth-card {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.05);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .auth-input {
    background: #fff;
    border-color: #e2e8f0;
    color: #0f172a;
}

[data-theme="light"] .auth-title {
    color: #1e293b;
}

[data-theme="light"] .auth-btn-google {
    background: #fff;
    border-color: #e2e8f0;
    color: #475569;
}