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

body {
    font-family: 'DM Sans', sans-serif;
    min-height: 100vh;
    background: #8bbcaa;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    position: relative;
    overflow-x: hidden;
}

.left-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 3rem 5rem;
    background: #fff;
    max-width: 560px;
    animation: slideIn 0.6s ease both;
    overflow-y: auto;
    max-height: 100vh;
}

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

.card {
    background: whitesmoke;
    border-radius: 20px;
    padding: 2.8rem 2.6rem;
    width: 100%;
    max-width: 460px;
    box-shadow: 0 24px 60px rgba(30, 58, 58, 0.18);
    animation: popIn 0.5s cubic-bezier(0.34,1.56,0.64,1) both;
    position: relative;
    z-index: 1;
}

@keyframes popIn {
    from {opacity: 0; transform: scale(0.92) translateY(16px);}
    to {opacity: 1; transform: scale(1) translateY(0);}
}

.logo {
    font-family: 'Fraunces', 'serif';
    font-size: 1.3rem;
    color: #1e3a3a;
    margin-bottom: 2.5rem;
    letter-spacing: -0.5px;
    text-align: center;
}

.logo span { color: #5a9080;}

h1 {
    font-family: 'Fraunces', 'serif';
    font-size: 2.2rem;
    color: #1e3a3a;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 2rem;
    letter-spacing: -1px;
    text-align: center;
}

.card-logo  {
    font-family: 'Fraunces', 'serif';
    font-size: 1.9rem;
    font-weight: 900;
    color: #1e3a3a;
    text-align: center;
    margin-bottom: 0.4rem;
    letter-spacing: -1px;
}

.card-sub {
    text-align: center;
    font-size: 0.88rem;
    color: #6b8a88;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.form-group {
    margin-bottom: 1.1rem;
}

label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: #6b8a88;
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

input, select {
    width: 100%;
    padding: 0.78rem 1rem;
    border: 1.5px solid #d0e4df;
    border-radius: 8px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    color: #1a2e2e;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    appearance: none;
}

input:focus, select:focus{
    border-color: #5a9080;
    box-shadow: 0 0 0 3px rgba(90, 144, 128, 0.12);
    background: #fff;
}

input::placeholder {
    color: #8bbcaa;
}

.input-wrapper {
    position: relative;
}

.toggle-pw {
    position: absolute;
    right: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #6b8a88;
    font-size: 1rem;
    user-select: none;
    transition: color 0.2s;
}

.toggle-pw:hover{
    color: #5a9080;
}

.select-wrapper {
    position: relative;
}

.select-wrapper::after {
    content: '▾';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color:  #6b8a88;
    font-size: 0.9rem;
}

.pw-hint {
    font-size: 0.75rem;
    color: #6b8a88;
    margin-top: 0.3rem;
    line-height: 1.4;
}

.phone-row {
    display: flex;
    gap: 0.5rem;
}

.phone-row .flag-select {
    width: 110px;
    flex-shrink: 0;
}

.phone-row input { 
    flex: 1;
}

.btn-primary {
    width: 100%;
    padding: 0.9rem;
    background: #1e3a3a;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 1.2rem;
    transition: background 0.2s, transform 0.1s;
    letter-spacing: 0.3px;
}

.btn-primary:hover{ background: #162828;}
.btn-primary:active{ transform: scaleY(0.99);}
.btn-primary:disabled{ background: #6b8a88;}

.footer-text {
    text-align: center;
    font-size: 0.88rem;
    color: #6b8a88;
    margin-top: 1.2rem;
}

.footer-text a {
    color: #5a9080;
    font-weight: 600;
    text-decoration: none;
}

.footer-text a:hover {
    text-decoration: underline;
}

.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    background: #1e3a3a;
    color: #fff;
    padding: 0.8rem 1.6rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0;
    transition: all 0.35s ease;
    z-index: 999;
    white-space: nowrap;
}

.toast.show {opacity: 1; transform: translateX(-50%) translateY(0);}
.toast.success { background-color: #6b8a88;}
.toast.error {background: #FF5C5C;}

.right-panel {
    flex: 1;
    background: #8bbcaa;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    position: relative;
    overflow: hidden;
    animation: fadeIn 0.8s ease both 0.2s
}

@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}

.right-panel::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    /* background: rgba(255,255,255,0.08); */
    top: -100px;
    right: -100px;
}

.right-panel::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    /* background: rgba(255,255,255,0.06); */
    bottom: -60px;
    left: -60px;
}

.tagline {
    font-family: 'Fraunces', 'serif';
    font-size: 3rem;
    font-weight: 900;
    color: #1e3a3a;
    line-height: 1.1;
    letter-spacing: -2px;
    text-align: center;
    position: relative;
    z-index: 1;
}


@media (max-width: 480px) {
    .card {
        padding: 2rem 1.5rem;
    }

    .logo {
        text-align: center;
    }

    h1 {
        text-align: center;
    }
}

@media (max-width: 768px) {
    body {
        flex-direction: column;
    }

    .left-panel {
        max-width: 100%;
        padding: 2rem 1.5rem;
    }

    .right-panel {
        display: none;
    }
}