﻿/*@@import url('https://fonts.googleapis.com/css?family=Montserrat:400,800');*/
:root {
    --primary-blue: #8596e0;
    --dark-blue: #5d73d5;
    --light-blue: #aeb9ea;
    --very-light-blue: #f8f9fc;
}
* {
    box-sizing: border-box;
}

body {
    background: var(--very-light-blue);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    font-family: 'Montserrat', sans-serif;
    height: 100vh;
    margin: -20px 0;
}

/* ── TYPOGRAPHY ─────────────────────────────────────────────── */
h1 {
    font-weight: bold;
    margin: 0;
}

h2 {
    text-align: center;
}

p {
    font-size: 14px;
    font-weight: 100;
    line-height: 20px;
    letter-spacing: 0.5px;
    margin: 20px 0 30px;
}

span {
    font-size: 12px;
}

a {
    color: #333;
    font-size: 14px;
    text-decoration: none;
    margin: 15px 0;
}

/* ── BUTTONS ────────────────────────────────────────────────── */
button {
    border-radius: 20px;
    border: 1px solid var(--primary-blue);
    background: linear-gradient(135deg, var(--light-blue), var(--dark-blue));
    color: #FFFFFF;
    font-size: 12px;
    font-weight: bold;
    padding: 12px 45px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: transform 80ms ease-in;
}

    button:active {
        transform: scale(0.95);
    }

    button:focus {
        outline: none;
    }

    button.ghost {
        background-color: transparent;
        border-color: #FFFFFF;
    }
    button:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(92,107,192,0.3);
    }

.btn.btn-icon {
    height: 40px;
    width: 40px;
    line-height: 34px;
    padding: 0;
}

/* ── GOOGLE BUTTONS ─────────────────────────────────────────── */
.btn-google {
    background: #fff;
    border: 1px solid #ddd;
    color: #444;
    font-weight: 500;
}

    .btn-google:hover {
        background: #f7f7f7;
    }

.google-login-btn {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 260px;
    height: 44px;
    background: #ffffff;
    border: 1px solid #dadce0;
    border-radius: 6px;
    padding: 0;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .google-login-btn:hover {
        /*background: linear-gradient(135deg, var(--dark-blue), var(--light-blue));
        transform: translateY(-2px);
        box-shadow: 0 1px 3px rgba(0,0,0,0.15);*/
        background: #f8f9fa;
        box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    }
    .google-login-btn:active {
        transform: scale(0.98);
        background: #eeeeee;
    }
.google-icon-box {
    background: transparent;
    height: 100%;
    width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .google-icon-box img {
        width: 30px;
        height: 30px;
    }

.google-text {
    color: #3c4043;
    font-size: 14px;
    font-weight: 500;
    margin-left: 8px;
    font-family: Roboto, sans-serif;
}

/* ── FORMS ──────────────────────────────────────────────────── */
form {
    background-color: #FFFFFF;
    display: flex;
    justify-content: center;
    flex-direction: column;
    text-align: center;
}

signup {
    background-color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 50px;
    height: 100%;
    text-align: center;
}

.form-group {
    margin-bottom: 1rem;
    padding-left: 1rem;
    padding-right: 1rem;
}

.form-label {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 8px;
    display: block;
    text-align: left;
}

.required {
    color: #ef4444;
}

.input-wrapper {
    position: relative;
}

.form-input {
    width: 100%;
    height: 46px;
    padding-left: 44px;
    padding-right: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    outline: none;
    transition: all 0.2s ease;
}

    .form-input::placeholder {
        color: #94a3b8;
    }

    .form-input:focus {
        border-color: var(--primary-blue);
        box-shadow: 0 0 0 3px rgba(47,93,169,0.2);
    }

.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 16px;
}

/* ── CONTAINER ──────────────────────────────────────────────── */
.container {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);
    position: relative;
    overflow: hidden;
    width: 768px;
    max-width: 100%;
    min-height: 480px;
}

/* ── FORM PANELS ────────────────────────────────────────────── */
.form-container {
    position: absolute;
    top: 0;
    height: 100%;
    transition: all 0.6s ease-in-out;
}

.sign-in-container {
    left: 0;
    width: 50%;
    z-index: 2;
}

.container.right-panel-active .sign-in-container {
    transform: translateX(100%);
}

.sign-up-container {
    left: 0;
    width: 50%;
    opacity: 0;
    z-index: 1;
}

.container.right-panel-active .sign-up-container {
    transform: translateX(100%);
    opacity: 1;
    z-index: 5;
    animation: show 0.6s;
}

@keyframes show {
    0%, 49.99% {
        opacity: 0;
        z-index: 1;
    }

    50%, 100% {
        opacity: 1;
        z-index: 5;
    }
}

/* ── OVERLAY ────────────────────────────────────────────────── */
.overlay-container {
    position: absolute;
    top: 0;
    left: 50%;
    width: 50%;
    height: 100%;
    overflow: hidden;
    transition: transform 0.6s ease-in-out;
    z-index: 100;
}

.container.right-panel-active .overlay-container {
    transform: translateX(-100%);
}

.overlay {
    background: #764ba2;
    background: linear-gradient(to right, var(--light-blue), var(--dark-blue));
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 0 0;
    color: #FFFFFF;
    position: relative;
    left: -100%;
    height: 100%;
    width: 200%;
    transform: translateX(0);
    transition: transform 0.6s ease-in-out;
}

.container.right-panel-active .overlay {
    transform: translateX(50%);
}

.overlay-panel {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 40px;
    text-align: center;
    top: 0;
    height: 100%;
    width: 50%;
    transform: translateX(0);
    transition: transform 0.6s ease-in-out;
}

.overlay-left {
    transform: translateX(-20%);
}

.container.right-panel-active .overlay-left {
    transform: translateX(0);
}

.overlay-right {
    right: 0;
    transform: translateX(0);
}

.container.right-panel-active .overlay-right {
    transform: translateX(20%);
}

/* ── SOCIAL ─────────────────────────────────────────────────── */
.social-container {
    margin: 60px 0;
}

    .social-container a {
        border: 1px solid #DDDDDD;
        border-radius: 50%;
        display: inline-flex;
        justify-content: center;
        align-items: center;
        margin: 0 5px;
        height: 40px;
        width: 40px;
    }

/* ── UTILITY ────────────────────────────────────────────────── */
.align_center {
    align-items: center;
}

.margin_top {
    margin-top: 50px;
}

.text-white {
    color: #fff;
}

.d-none {
    display: none;
}

/* ── BACK TO HOME ───────────────────────────────────────────── */
.back-to-home {
    position: fixed;
    top: 20px;
    right: 20px;
    left: auto;
    z-index: 1000;
}

.home-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: linear-gradient(135deg, var(--light-blue), var(--dark-blue));
    color: #fff;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: all 0.3s ease;

    position: absolute;
    top: 20px;
    right: 20px;
}

    .home-btn i {
        font-size: 16px;
    }

    .home-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(0,0,0,0.25);
        background: linear-gradient(135deg, var(--dark-blue), var(--light-blue));
    }

/* ── MOBILE TOGGLE TEXT ─────────────────────────────────────── */
.mobile-toggle-text {
    display: none;
    margin-top: 15px;
    font-size: 14px;
}

    .mobile-toggle-text a {
        color: #6366f1;
        font-weight: 600;
    }

/* ── FOOTER ─────────────────────────────────────────────────── */
footer {
    background-color: #222;
    color: #fff;
    font-size: 14px;
    bottom: 0;
    position: fixed;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 999;
}

    footer p {
        margin: 10px 0;
    }

    footer i {
        color: red;
    }

    footer a {
        color: #3c97bf;
        text-decoration: none;
    }

/* ============================================================
   MOBILE
   ============================================================ */
@media screen and (max-width: 768px) {
    body {
        height: auto;
        margin: 0;
        padding: 20px 10px;
        display: block;
    }

    .container {
        width: 100% !important;
        min-height: auto !important;
        height: auto !important;
    }

    .overlay-container,
    .overlay {
        display: none !important;
    }

    .form-container {
        position: relative !important;
        width: 100% !important;
        height: auto !important;
        left: 0 !important;
        transform: none !important;
        opacity: 1 !important;
        z-index: auto !important;
    }

    .sign-in-container,
    .sign-up-container {
        position: relative !important;
        width: 100% !important;
        transform: none !important;
        opacity: 1 !important;
    }

    .container.right-panel-active .sign-in-container,
    .container.right-panel-active .sign-up-container {
        transform: none !important;
    }

    .sign-up-container {
        display: none;
    }

    .mobile-show-signup .sign-in-container {
        display: none;
    }

    .mobile-show-signup .sign-up-container {
        display: block;
    }

    form {
        padding: 20px 15px !important;
    }

    button {
        width: 100%;
    }

    .google-login-btn {
        width: 100%;
    }

    .form-group {
        padding-left: 0;
        padding-right: 0;
    }

    .mobile-toggle-text {
        display: block;
    }

    .home-text {
        display: none;
    }

    .home-btn {
        padding: 12px;
        border-radius: 50%;
        justify-content: center;
        width: 44px;
        height: 44px;
    }
}

.alert-danger {
    background: linear-gradient(135deg, #ff4d4f, #ff7875);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 10px rgba(255, 77, 79, 0.25);
    display: flex;
    align-items: center;
    gap: 10px;
}

    /* Optional icon */
    .alert-danger::before {
        content: "⚠️";
        font-size: 16px;
    }

    /* Close button style */
    .alert-danger .btn-close {
        filter: invert(1);
        opacity: 0.8;
    }

        .alert-danger .btn-close:hover {
            opacity: 1;
        }

.custom-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #ff4d4f, #ff7875);
    color: #fff;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 9999;
    min-width: 250px;
    max-width: 300px;
    animation: slideIn 0.4s ease;
}
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}