@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Quicksand:wght@500;600;700&family=Comic+Neue:wght@700&display=swap');

:root {
    --bg-pink: #FFC0CB;
    --soft-pink: #FFE1E8;
    --bg-cream: #FFF8F0;
    --text-dark: #3E2723;
    --matcha: #8FA96B;
    --matcha-light: #C1E1C1;
    --strawberry: #D65A68;
    --white: #FFFFFF;
}

* {
    box-sizing: border-box;
}

html, body {
    width: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-cream);
    color: var(--text-dark);
}

.login-container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    overflow: hidden;
}

/* LEFT SIDE */
.left-panel {
    flex: 1;
    background:
        radial-gradient(circle at 15% 20%, rgba(255, 192, 203, 0.25), transparent 25%),
        radial-gradient(circle at 80% 80%, rgba(193, 225, 193, 0.35), transparent 25%),
        var(--bg-cream);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px;
}

.left-content {
    text-align: center;
    max-width: 650px;
}

.logo-img {
    width: 90%;
    max-width: 560px;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.03);
}

.tagline {
    margin-top: 10px;
    font-family: 'Quicksand', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #6A4A3C;
}

.feature-row {
    margin-top: 28px;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.feature-row span {
    background-color: rgba(255, 255, 255, 0.75);
    border: 2px solid rgba(255, 192, 203, 0.7);
    border-radius: 999px;
    padding: 10px 16px;
    font-family: 'Quicksand', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-dark);
    box-shadow: 0 6px 15px rgba(62, 39, 35, 0.06);
}

/* RIGHT SIDE */
.right-panel {
    flex: 1;
    background:
        radial-gradient(circle at 85% 12%, rgba(255, 255, 255, 0.35), transparent 20%),
        radial-gradient(circle at 12% 90%, rgba(193, 225, 193, 0.35), transparent 22%),
        var(--bg-pink);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 45px;
    position: relative;
}

.right-panel::before {
    content: "🐾";
    position: absolute;
    top: 45px;
    right: 70px;
    font-size: 3rem;
    opacity: 0.18;
    transform: rotate(20deg);
}

.right-panel::after {
    content: "🍓";
    position: absolute;
    bottom: 55px;
    left: 70px;
    font-size: 3rem;
    opacity: 0.25;
    transform: rotate(-15deg);
}

.login-card {
    width: 100%;
    max-width: 520px;
    background-color: rgba(255, 248, 240, 0.92);
    border: 3px solid rgba(255, 255, 255, 0.75);
    border-radius: 36px;
    padding: 38px;
    box-shadow: 0 18px 40px rgba(62, 39, 35, 0.16);
    position: relative;
    overflow: hidden;
}

.card-decoration {
    position: absolute;
    top: -18px;
    right: -8px;
    font-size: 7rem;
    opacity: 0.07;
    transform: rotate(-18deg);
}

h2 {
    margin: 0;
    text-align: center;
    font-family: 'Comic Neue', cursive;
    font-size: 2.9rem;
    color: var(--text-dark);
}

.login-subtitle {
    margin: 8px 0 24px;
    text-align: center;
    font-size: 0.95rem;
    color: #7A5A4C;
}

form {
    width: 100%;
}

/* ROLE CARDS */
.role-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 15px;
}

.role-radio {
    display: none;
}

.role-card {
    background-color: #FFFFFF;
    border: 2px solid transparent;
    border-radius: 22px;
    padding: 15px 12px;
    cursor: pointer;
    text-align: center;
    box-shadow: 0 7px 16px rgba(62, 39, 35, 0.07);
    transition: all 0.25s ease;
}

.role-card:hover {
    transform: translateY(-3px);
}

.role-icon {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.role-title {
    display: block;
    font-family: 'Quicksand', sans-serif;
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-dark);
}

.role-desc {
    display: block;
    margin-top: 4px;
    font-size: 0.72rem;
    color: #8A746A;
    line-height: 1.3;
}

.role-radio:checked + .role-card {
    border-color: var(--strawberry);
    background-color: #FFF1F4;
    box-shadow: 0 8px 18px rgba(214, 90, 104, 0.18);
}

/* ROLE PREVIEW */
.role-preview {
    margin-bottom: 20px;
}

.preview-box {
    background-color: rgba(193, 225, 193, 0.35);
    border: 2px dashed rgba(143, 169, 107, 0.75);
    border-radius: 20px;
    padding: 14px 16px;
    text-align: left;
}

.preview-box h3 {
    margin: 0 0 5px;
    font-family: 'Quicksand', sans-serif;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.preview-box p {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.5;
    color: #6A4A3C;
}

/* INPUTS */
.input-group {
    margin-bottom: 15px;
    position: relative;
}

.input-field {
    width: 100%;
    padding: 15px 18px;
    border: 2px solid transparent;
    border-radius: 999px;
    background-color: #FFFFFF;
    font-size: 0.95rem;
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    outline: none;
    box-shadow: 0 6px 14px rgba(62, 39, 35, 0.06);
    transition: all 0.25s ease;
}

.input-field:focus {
    border-color: var(--matcha);
    box-shadow: 0 8px 18px rgba(143, 169, 107, 0.18);
}

.password-group .input-field {
    padding-right: 75px;
}

.toggle-password {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: var(--strawberry);
    font-weight: 700;
    cursor: pointer;
    font-family: 'Quicksand', sans-serif;
}

/* ERROR */
.error-msg {
    background-color: #FFE1E8;
    border: 1px solid rgba(214, 90, 104, 0.35);
    color: #B83245;
    border-radius: 18px;
    padding: 10px 14px;
    margin: 8px 0 14px;
    font-size: 0.86rem;
    text-align: center;
}

/* OPTIONS */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 6px;
    font-size: 0.84rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #6A4A3C;
}

.remember-me input {
    accent-color: var(--strawberry);
}

.forgot-pass,
.signup-text a {
    color: var(--strawberry);
    font-weight: 700;
    text-decoration: none;
}

.forgot-pass:hover,
.signup-text a:hover {
    text-decoration: underline;
}

/* BUTTON */
.login-btn {
    width: 100%;
    margin-top: 22px;
    padding: 14px;
    border: 1.8px solid var(--text-dark);
    border-radius: 999px;
    background-color: var(--matcha-light);
    color: var(--text-dark);
    font-size: 1.05rem;
    font-weight: 800;
    font-family: 'Quicksand', sans-serif;
    cursor: pointer;
    transition: all 0.25s ease;
}

.login-btn:hover {
    background-color: #A8D5A8;
    transform: translateY(-2px);
    box-shadow: 0 10px 18px rgba(62, 39, 35, 0.12);
}

.signup-text {
    margin: 18px 0 0;
    text-align: center;
    font-size: 0.9rem;
    color: #6A4A3C;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .login-container {
        flex-direction: column;
        min-height: 100vh;
    }

    .left-panel {
        flex: none;
        min-height: auto;
        padding: 35px 20px 20px;
    }

    .right-panel {
        flex: none;
        min-height: auto;
        padding: 20px 20px 40px;
    }

    .logo-img {
        max-width: 260px;
        width: 80%;
    }

    .tagline {
        font-size: 0.9rem;
        margin-top: 5px;
    }

    .feature-row {
        margin-top: 16px;
        gap: 8px;
    }

    .feature-row span {
        font-size: 0.75rem;
        padding: 7px 11px;
    }

    .login-card {
        max-width: 430px;
        padding: 28px 22px;
        border-radius: 28px;
    }

    h2 {
        font-size: 2.3rem;
    }

    .login-subtitle {
        font-size: 0.85rem;
    }
}

@media (max-width: 520px) {
    .role-selector {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .role-card {
        padding: 12px 8px;
        border-radius: 18px;
    }

    .role-icon {
        font-size: 1.2rem;
    }

    .role-title {
        font-size: 0.85rem;
    }

    .role-desc {
        font-size: 0.62rem;
    }

    .preview-box {
        padding: 12px 14px;
    }

    .preview-box h3 {
        font-size: 0.85rem;
    }

    .preview-box p {
        font-size: 0.75rem;
    }

    .input-field {
        padding: 13px 16px;
        font-size: 0.85rem;
    }

    .form-options {
        font-size: 0.75rem;
    }

    .login-btn {
        padding: 12px;
        font-size: 0.95rem;
    }
}