/* Auth Pages Styling - Beach Vibe matching Landing Page */
:root {
    --primary: #0f172a;
    --primary-light: #1e293b;
    --accent: #38bdf8;
    --accent-glow: rgba(56, 189, 248, 0.4);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --bg-base: #020617;
    --glass-bg: rgba(15, 23, 42, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --border-radius: 20px;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    --shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.6);
}

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

html, body {
    width: 100%;
    height: 100%;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

body {
    background-color: var(--bg-base);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    align-items: center; /* Center vertically for shorter content like Login */
    justify-content: center;
    overflow-y: auto; /* Allow vertical scrolling */
    background-image: 
        linear-gradient(rgba(2, 6, 23, 0.5), rgba(2, 6, 23, 0.8)),
        url('../background/Pantai-Sulamadaha.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 60px 20px; /* Add padding for long content scrolling */
}

/* Base text elements */
h1, h2, h3, h4, h5, h6, p, label, a, li, div {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* Auth Container */
.auth-container {
    width: 100%;
    max-width: 900px;
    margin: auto; /* Use margin auto for flex centered alignment */
    z-index: 10;
    position: relative;
}

.auth-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

/* Left side content */
.auth-left {
    color: var(--text-main);
    animation: slideIn 0.6s ease-out;
}

.auth-left h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    background: linear-gradient(to right, #fff, #7dd3fc, #38bdf8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-left p {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 30px;
}

.features-list {
    list-style: none;
}

.features-list li {
    font-size: 1rem;
    margin: 15px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Auth Box */
.auth-box {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    padding: 40px;
    animation: slideUp 0.6s ease-out;
}

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

.auth-header {
    text-align: center;
    margin-bottom: 35px;
}

.auth-header h1 {
    font-size: 2rem;
    color: var(--text-main);
    margin-bottom: 8px;
    font-weight: 800;
}

.auth-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.auth-header .icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent), #0ea5e9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
    margin: 0 auto 20px;
    box-shadow: 0 0 15px var(--accent-glow);
}

/* Form Groups */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 8px;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input {
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-main);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: rgba(56, 189, 248, 0.5);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

.form-group input::placeholder {
    color: rgba(148, 163, 184, 0.5);
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent);
    color: var(--bg-base);
    width: 100%;
    box-shadow: 0 0 15px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: #7dd3fc;
    box-shadow: 0 0 25px var(--accent-glow);
}

.btn-google {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid var(--glass-border);
    width: 100%;
}

.btn-google:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.btn-google svg {
    width: 20px;
    height: 20px;
}

/* Divider */
.auth-divider {
    text-align: center;
    margin: 25px 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    position: relative;
    font-family: inherit;
}

.auth-divider:before,
.auth-divider:after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: var(--glass-border);
}

.auth-divider:before { left: 0; }
.auth-divider:after { right: 0; }

/* Alerts */
.alert {
    padding: 14px 16px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
}

.alert-error {
    border-left: 4px solid #ef4444;
    color: #fca5a5;
}

.alert-success {
    border-left: 4px solid #10b981;
    color: #6ee7b7;
}

.alert-info {
    border-left: 4px solid #38bdf8;
    color: #7dd3fc;
}

.alert-warning {
    border-left: 4px solid #f59e0b;
    color: #fcd34d;
}

/* Footer & Links */
.auth-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--glass-border);
}

.auth-footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

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

/* Floating shapes override */
.shapes {
    display: none; /* Removed the white blobs since we have a nice beach background now */
}

/* Responsive */
@media (max-width: 768px) {
    .auth-wrapper { grid-template-columns: 1fr; }
    .auth-left { display: none; }
    .auth-box { padding: 30px 20px; }
    body { padding: 20px 0; }
}
