* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Inter", sans-serif;
    background-color: #faf7f2;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: 0;
}
.bg-glow-tl {
    top: -10%;
    left: -5%;
    width: 400px;
    height: 400px;
    background-color: rgba(235, 150, 160, 0.4);
}
.bg-glow-br {
    bottom: -10%;
    right: -5%;
    width: 500px;
    height: 500px;
    background-color: rgba(251, 193, 58, 0.3);
}

.auth-container {
    display: flex;
    gap: 30px;
    max-width: 1000px;
    width: 90%;
    z-index: 1;
}

.auth-card {
    border-radius: 40px;
    width: 50%;
}

.auth-left {
    background: linear-gradient(180deg, #fac233 75%, #fbd270 100%);
    padding: 50px 40px 40px 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.left-text h1 {
    font-size: 3.5rem;
    font-weight: 900;
    color: #111;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.left-text p {
    color: #333;
    font-size: 1.05rem;
    line-height: 1.5;
    margin-bottom: 40px;
    font-weight: 400;
}

.left-image {
    background-color: #8c5b4b;
    border-radius: 30px;
    height: 300px;
    width: 100%;
    background-image: url("https://images.unsplash.com/photo-1517842645767-c639042777db?q=80&w=800&auto=format&fit=crop");
    background-size: cover;
    background-position: center;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.2);
}

.auth-right {
    background-color: #ffffff;
    padding: 50px 60px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.brand-logo {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    color: #111;
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
    align-self: center;
}
.brand-line {
    width: 30px;
    height: 3px;
    background-color: #a87b32;
    margin: 5px auto 0 auto;
    border-radius: 2px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    display: block;
}

.form-input {
    width: 100%;
    background-color: #f2efe9;
    border: none;
    padding: 16px 25px;
    border-radius: 30px;
    font-size: 0.95rem;
    color: #333;
    font-family: "Inter", sans-serif;
    outline: none;
    transition: box-shadow 0.2s;
}
.form-input::placeholder {
    color: #aaa;
}
.form-input:focus {
    box-shadow: 0 0 0 2px #fac233;
}

.forgot-link-wrapper {
    text-align: right;
    margin-bottom: 25px;
}
.forgot-pw {
    font-size: 0.85rem;
    color: #a83232;
    text-decoration: none;
    font-weight: 600;
}
.btn-primary {
    width: 100%;
    background-color: #111;
    color: #fff;
    border: none;
    padding: 18px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    font-family: "Inter", sans-serif;
}

.divider {
    text-align: center;
    margin: 30px 0;
    position: relative;
}
.divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #e5e5e5;
    z-index: 1;
}
.divider span {
    background-color: #fff;
    padding: 0 15px;
    color: #aaa;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    position: relative;
    z-index: 2;
}

.social-login {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}
.btn-social {
    flex: 1;
    background-color: #f2efe9;
    color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}
.text-dark {
    color: #111;
    font-size: 1.1rem;
}
.social-text {
    font-size: 0.85rem;
}

.auth-footer {
    text-align: center;
    font-size: 0.9rem;
    color: #666;
}
.auth-footer a {
    color: #a87b32;
    font-weight: 700;
    text-decoration: none;
}

.error-alert {
    background-color: #fee;
    color: #c00;
    padding: 12px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 20px;
    text-align: center;
}

@media (max-width: 900px) {
    .auth-container {
        flex-direction: column;
        width: 95%;
        gap: 20px;
        margin: 40px 0;
    }
    .auth-card {
        width: 100%;
    }
    body {
        overflow-y: auto;
        align-items: flex-start;
    }
    .bg-glow {
        display: none;
    }
}
