@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Inter:wght@300;400;500;600&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f3f4f6;
    background-image: radial-gradient(#e5e7eb 1px, transparent 1px);
    background-size: 20px 20px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-card {
    display: flex;
    background: #ffffff;
    width: 100%;
    max-width: 850px;
    min-height: 550px;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    animation: slideUp 0.8s ease-out;
}

/* Register page specific adjustments */
.login-card.register-card {
    min-height: 650px;
}

.login-card.register-card .card-form {
    padding: 40px 50px;
}

.login-card.register-card .form-header {
    margin-bottom: 25px;
}

.login-card.register-card .input-group {
    margin-bottom: 16px;
}

/* --- Left Side: The Image --- */
.card-visual {
    width: 50%;
    position: relative;
    /* Stock Image Theme: Camera/Lens */
    background: url('https://images.unsplash.com/photo-1516035069371-29a1b244cc32?ixlib=rb-1.2.1&auto=format&fit=crop&w=1000&q=80') no-repeat center center;
    background-size: cover;
}

/* Dark overlay for text readability */
.card-visual::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.7));
}

.visual-text {
    position: absolute;
    bottom: 40px;
    left: 40px;
    right: 40px;
    z-index: 2;
    color: white;
}

.visual-text h2 {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.visual-text p {
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 300;
    line-height: 1.5;
}

/* --- Right Side: The Form --- */
.card-form {
    width: 50%;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-header {
    margin-bottom: 30px;
    text-align: center;
}

.form-header h1 {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    color: #111;
    margin-bottom: 5px;
}

.form-header p {
    color: #888;
    font-size: 0.9rem;
}

/* Inputs */
.input-group {
    margin-bottom: 20px;
}

.input-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #444;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-box {
    position: relative;
}

.input-box input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s;
    background: #fcfcfc;
    color: #333;
}

.input-box input:focus {
    outline: none;
    border-color: #111;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.toggle-pass {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
}

.toggle-pass:hover {
    color: #333;
}

/* Options Row */
.options-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    font-size: 0.85rem;
}

.checkbox-wrap {
    display: flex;
    align-items: center;
    color: #666;
    cursor: pointer;
}

.checkbox-wrap input {
    margin-right: 8px;
    accent-color: #111;
}

.forgot-link {
    color: #111;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px dotted #ccc;
}

.forgot-link:hover {
    border-bottom-style: solid;
}

/* Buttons */
.btn-primary {
    width: 100%;
    padding: 14px;
    background: #111;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}

.btn-primary:hover {
    background: #333;
    transform: translateY(-2px);
}

.google-btn {
    width: 100%;
    padding: 12px;
    margin-top: 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    color: #555;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
}

.google-btn:hover {
    background: #f9f9f9;
    border-color: #bbb;
}

.auth-footer {
    text-align: center;
    margin-top: 25px;
    font-size: 0.85rem;
    color: #888;
}

.auth-footer a {
    color: #111;
    font-weight: 600;
    text-decoration: none;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Responsive Design (Mobile) --- */
@media (max-width: 768px) {
    .login-card {
        flex-direction: column;
        height: auto;
        /* Allow height to grow */
        max-width: 450px;
    }

    .card-visual {
        width: 100%;
        height: 180px;
        /* Shorter banner on mobile */
    }

    .visual-text {
        display: none;
        /* Hide text on mobile to save space */
    }

    .card-form {
        width: 100%;
        padding: 30px;
    }

    .form-header h1 {
        font-size: 1.5rem;
    }
}
