/* ========================= */
/* IMPORTS & RESET */
/* ========================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:wght@500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100vh;
}

/* ========================= */
/* LAYOUT (FLEXBOX) */
/* ========================= */
body {
    font-family: 'Inter', sans-serif;
    color: #f8f6f1;
    background: linear-gradient(rgba(6,23,17,.55), rgba(10,34,26,.65)), url("../assets/flower-bg.webp");
    background-size: cover;
    background-position: 70% center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: flex;
    flex-direction: column; /* Ginagawang column ang layout para laging nasa baba ang footer */
}

/* Wrapper para ma-center ang login card sa gitna ng screen */
.auth-wrapper {
    flex: 1; /* Kinukuha ang lahat ng available space para itulak ang footer pababa */
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 20px;
}

/* ========================= */
/* AUTH CARD */
/* ========================= */
.auth-card {
    margin-top: 20px;
    width: 100%;
    max-width: 480px;
    padding: 45px;
    border-radius: 36px;
    background: linear-gradient(180deg, rgba(12,34,25,.75), rgba(18,50,40,.65));
    border: 1px solid rgba(255,255,255,.06);
    backdrop-filter: blur(24px);
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
    position: relative;
    overflow: hidden;
    animation: fadeUp .8s ease forwards;
}

.auth-card::before {
    content: "";
    position: absolute;
    width: 350px;
    height: 350px;
    top: -170px;
    right: -170px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,.05), transparent 70%);
}

/* ========================= */
/* TYPOGRAPHY & COMPONENTS */
/* ========================= */
.logo {
    font-family: 'Inter', sans-serif;
    font-size: 56px;
    font-weight: 700;
    letter-spacing: -2px;
    text-align: center;
    background: linear-gradient(90deg, #ffffff, #d9d2c3);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.subtitle {
    text-align: center;
    color: rgba(255, 255, 255, .65);
    margin-bottom: 30px;
}

.tabs {
    display: flex;
    background: rgba(255, 255, 255, .03);
    padding: 5px;
    border-radius: 999px;
    margin-bottom: 28px;
}

.tab {
    flex: 1;
    padding: 14px;
    border: none;
    background: none;
    color: white;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
    transition: .3s;
}

.tab.active {
    background: #f4efe5;
    color: #0f231c;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

input {
    padding: 16px 18px;
    border-radius: 16px;
    font-size: 16px;
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(255, 255, 255, .08);
    color: white;
    outline: none;
    transition: .3s;
}

input:focus {
    border-color: rgba(255, 255, 255, .18);
    background: rgba(255, 255, 255, .05);
}

.submit-btn {
    margin-top: 8px;
    padding: 16px;
    border: none;
    border-radius: 999px;
    background: #f4efe5;
    color: #0f231c;
    font-weight: 700;
    cursor: pointer;
    transition: .3s;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255,255,255,.08);
}

.google-btn {
    width: 100%;
    padding: 12px;
    font-size: 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(255, 255, 255, .08);
    color: white;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: .3s;
}
.google-icon {
    width: 25px;
}
.divider {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 24px 0;
    color: rgba(255, 255, 255, .55);
}

.divider::before, .divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, .08);
}

.forgot-link {
    display: block;
    margin-top: 12px;
    text-align: right;
    font-size: 14px;
    color: rgba(255, 255, 255, .7);
    text-decoration: none;
}

#signupFields { display: none; }

/* ========================= */
/* FOOTER */
/* ========================= */
.auth-footer {
    width: 100%;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    padding: 40px 20px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin: 0 10px;
}

.footer-links a:hover { color: #fff; text-decoration: underline; }

/* ========================= */
/* MODALS, LOADER, TOAST */
/* ========================= */
.modal {
    position: fixed;
    inset: 0;
    display: none;
    justify-content: center;
    align-items: center;
    background: rgba(0,0,0,.45);
    backdrop-filter: blur(12px);
    z-index: 999;
}

.modal.show { display: flex; }

.modal-box {
    width: 90%;
    max-width: 420px;
    padding: 30px;
    border-radius: 28px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .08);
    backdrop-filter: blur(30px);
}

.toast {
    position: fixed;
    top: 30px;
    right: 30px;
    padding: 18px 24px;
    border-radius: 18px;
    background: rgba(12,34,25,.95);
    border: 1px solid rgba(255,255,255,.08);
    transform: translateY(-120px);
    opacity: 0;
    transition: .4s;
    z-index: 9999;
}

.toast.show { transform: translateY(0); opacity: 1; }

.loader {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    width: 28px;
    height: 28px;
    border: 3px solid rgba(255,255,255,.15);
    border-top: 3px solid #fff;
    border-radius: 50%;
    animation: spin .8s linear infinite;
    display: none;
}

.loader.show { display: block; }

/* ========================= */
/* ANIMATIONS */
/* ========================= */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

/* ========================= */
/* MOBILE */
/* ========================= */
@media(max-width: 600px) {
    .auth-card { padding: 32px 24px; }
    .logo { font-size: 42px; }
}

::-webkit-scrollbar { display: none; }