/* ==========================================
   TRAVELGALLERY AUTH PAGE
   LOGIN + REGISTER
========================================== */

* {
    box-sizing: border-box;
}

.auth-page {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: #f5f7f8;
    font-family: Arial, sans-serif;
}


/* ==========================================
   NAVBAR
========================================== */

.auth-page .navbar {
    width: 100%;
    height: 82px;
    padding: 0 7%;
    background: white;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-bottom: 1px solid #eeeeee;
}

.auth-page .logo {
    font-size: 25px;
    font-weight: 800;
    color: #1686a5;
}

.auth-page .nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.auth-page .nav-links a {
    color: #111;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
}

.auth-page .nav-links a:hover {
    color: #1686a5;
}

.auth-page .login-nav {
    background: #1686a5 !important;
    color: white !important;

    padding: 11px 22px;
    border-radius: 25px;

    transition: 0.3s;
}

.auth-page .login-nav:hover {
    background: #106b84 !important;
    color: white !important;
}


/* ==========================================
   MAIN LOGIN CONTAINER
========================================== */

.auth-container {
    width: 90%;
    max-width: 1200px;

    min-height: 650px;

    margin: 50px auto;

    background: white;

    border-radius: 28px;

    overflow: hidden;

    display: grid;

    grid-template-columns: 1fr 1fr;

    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.10);
}


/* ==========================================
   LEFT IMAGE
========================================== */

.auth-image {
    position: relative;

    min-height: 650px;

    background-image:
        linear-gradient(
            rgba(0, 70, 95, 0.15),
            rgba(0, 30, 45, 0.65)
        ),
        url("uploads/hero.jpg");

    background-size: cover;

    background-position: center;

    display: flex;

    align-items: flex-end;

    padding: 55px;
}


/* ==========================================
   IMAGE TEXT
========================================== */

.auth-overlay {
    max-width: 470px;

    color: white;

    animation: fadeUp 0.8s ease;
}

.auth-overlay h1 {
    margin: 0 0 15px 0;

    font-size: 46px;

    line-height: 1.1;

    font-weight: 800;
}

.auth-overlay p {
    margin: 0;

    font-size: 17px;

    line-height: 1.7;

    color: rgba(255, 255, 255, 0.92);
}


/* ==========================================
   RIGHT SIDE
========================================== */

.auth-form {
    display: flex;

    justify-content: center;

    align-items: center;

    padding: 50px;
}


/* ==========================================
   LOGIN CARD
========================================== */

.auth-card {
    width: 100%;

    max-width: 430px;
}

.auth-small {
    display: block;

    margin-bottom: 8px;

    color: #1686a5;

    font-size: 12px;

    font-weight: 700;

    letter-spacing: 2px;
}

.auth-card h2 {
    margin: 0 0 10px 0;

    color: #182c35;

    font-size: 40px;

    font-weight: 800;
}

.auth-description {
    margin: 0 0 30px 0;

    color: #777;

    font-size: 14px;

    line-height: 1.7;
}


/* ==========================================
   FORM LABEL
========================================== */

.auth-card form > label {
    display: block;

    margin-bottom: 8px;

    color: #344b54;

    font-size: 14px;

    font-weight: 600;
}


/* ==========================================
   INPUT
========================================== */

.auth-card input[type="email"],
.auth-card input[type="password"],
.auth-card input[type="text"] {

    width: 100%;

    height: 52px;

    padding: 0 16px;

    margin-bottom: 20px;

    border: 1px solid #dce4e7;

    border-radius: 12px;

    outline: none;

    background: #fafcfc;

    color: #222;

    font-size: 14px;

    transition: 0.3s;
}

.auth-card input[type="email"]:focus,
.auth-card input[type="password"]:focus,
.auth-card input[type="text"]:focus {

    border-color: #1686a5;

    background: white;

    box-shadow: 0 0 0 4px rgba(22, 134, 165, 0.10);
}


/* ==========================================
   LOGIN OPTIONS
========================================== */

.login-options {

    width: 100%;

    margin-top: -5px;

    margin-bottom: 25px;

    display: flex;

    justify-content: space-between;

    align-items: center;

    font-size: 13px;
}

.remember {

    display: flex !important;

    align-items: center;

    gap: 7px;

    margin: 0 !important;

    color: #777 !important;

    font-size: 13px !important;

    font-weight: 400 !important;
}

.remember input {
    width: 15px;

    height: 15px;

    margin: 0;
}

.login-options a {
    color: #1686a5;

    text-decoration: none;

    font-weight: 600;
}

.login-options a:hover {
    text-decoration: underline;
}


/* ==========================================
   LOGIN BUTTON
========================================== */

.auth-button {

    width: 100%;

    height: 52px;

    border: none;

    border-radius: 12px;

    background: #1686a5;

    color: white;

    font-size: 15px;

    font-weight: 700;

    cursor: pointer;

    transition: 0.3s;
}

.auth-button:hover {

    background: #106b84;

    transform: translateY(-2px);

    box-shadow: 0 10px 25px rgba(22, 134, 165, 0.25);
}


/* ==========================================
   DIVIDER
========================================== */

.auth-divider {

    width: 100%;

    display: flex;

    align-items: center;

    gap: 15px;

    margin: 25px 0;

    color: #aaa;

    font-size: 12px;

    text-align: center;
}

.auth-divider::before,
.auth-divider::after {

    content: "";

    height: 1px;

    flex: 1;

    background: #e5e5e5;
}


/* ==========================================
   GOOGLE BUTTON
========================================== */

.google-button {

    width: 100%;

    height: 52px;

    border: 1px solid #dedede;

    border-radius: 12px;

    background: white;

    color: #444;

    font-size: 14px;

    font-weight: 600;

    cursor: pointer;

    transition: 0.3s;
}

.google-button:hover {

    background: #f8f8f8;

    transform: translateY(-2px);
}

.google-button span {

    margin-right: 10px;

    color: #4285f4;

    font-size: 17px;

    font-weight: 800;
}


/* ==========================================
   REGISTER
========================================== */

.register-text {

    margin-top: 25px;

    color: #777;

    font-size: 14px;

    text-align: center;
}

.register-text a,
.register-link {

    color: #1686a5;

    font-weight: 700;

    text-decoration: none;
}

.register-text a:hover,
.register-link:hover {

    text-decoration: underline;
}


/* ==========================================
   ERROR
========================================== */

.error-message {

    margin-bottom: 20px;

    padding: 13px 15px;

    border-left: 4px solid #d93025;

    border-radius: 10px;

    background: #fff1f1;

    color: #d93025;

    font-size: 13px;
}


/* ==========================================
   SUCCESS
========================================== */

.success-message {

    margin-bottom: 20px;

    padding: 13px 15px;

    border-left: 4px solid #198754;

    border-radius: 10px;

    background: #effaf3;

    color: #198754;

    font-size: 13px;
}


/* ==========================================
   ANIMATION
========================================== */

@keyframes fadeUp {

    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ==========================================
   MOBILE
========================================== */

@media (max-width: 850px) {

    .auth-page .navbar {
        padding: 0 25px;
    }

    .auth-page .nav-links {
        gap: 15px;
    }

    .auth-container {

        width: 94%;

        grid-template-columns: 1fr;

        margin: 30px auto;
    }

    .auth-image {

        min-height: 350px;

        padding: 40px;
    }

    .auth-overlay h1 {
        font-size: 36px;
    }

    .auth-form {
        padding: 45px 30px;
    }
}


@media (max-width: 600px) {

    .auth-page .nav-links a:not(.login-nav) {
        display: none;
    }

    .auth-page .navbar {
        height: 70px;
    }

    .auth-container {
        margin: 20px auto;
    }

    .auth-image {
        min-height: 280px;
        padding: 30px;
    }

    .auth-overlay h1 {
        font-size: 30px;
    }

    .auth-overlay p {
        font-size: 14px;
    }

    .auth-form {
        padding: 35px 22px;
    }

    .auth-card h2 {
        font-size: 34px;
    }
}

.logout-btn {
    background: #f1f4f5;
    color: #d64545 !important;

    padding: 10px 20px;

    border-radius: 25px;

    font-weight: 600;

    transition: 0.3s;
}

.logout-btn:hover {
    background: #d64545;
    color: white !important;
}