:root {
    --primary: #ec4d9e;
    --primary-light: #ff7ec2;
    --secondary: #ff6fc4;
    --accent: #b95de0;
    --dark: #1a0c2f;
    --darker: #120820;
    --light: #f8fafc;
    --gray: #64748b;
    --gradient: linear-gradient(135deg, #ec4d9e 0%, #b95de0 50%, #ff6fc4 100%);
    --card-bg: rgba(255, 255, 255, 0.02);
    --input-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.08);
}

/* ---- Light theme (shared softbuiss_theme key) ---- */
body.light-mode {
    --darker: #f4f4fb;
    --light:  #28163d;
    --gray:   #5b5470;
    --primary-light: #c4359a;
    --card-bg: #ffffff;
    --input-bg: #f1f1f8;
    --card-border: rgba(236, 77, 158, 0.16);
}
body.light-mode .auth-left { background: linear-gradient(160deg, #fff0f8 0%, #f4f4fb 100%); }
body.light-mode .auth-card { box-shadow: 0 8px 30px rgba(236,77,158,0.08); }
body.light-mode .form-group input:focus,
body.light-mode .form-group select:focus { background: #ffffff; }
body.light-mode .auth-divider span,
body.light-mode .auth-divider::before,
body.light-mode .auth-divider::after { border-color: rgba(40,22,61,0.12); }

/* Floating theme toggle for auth screens */
.theme-toggle {
    position: fixed; top: 1.25rem; right: 1.25rem; z-index: 50;
    width: 42px; height: 42px; border-radius: 50%;
    border: 1px solid rgba(236, 77, 158, 0.3);
    background: var(--card-bg); color: var(--light);
    cursor: pointer; font-size: 1rem;
    display: inline-flex; align-items: center; justify-content: center;
    transition: all 0.25s ease;
}
.theme-toggle:hover { border-color: var(--primary); transform: rotate(-15deg); }

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

body {
    font-family: 'Inter', sans-serif;
    background: var(--darker);
    color: var(--light);
    min-height: 100vh;
}

.auth-container {
    display: flex;
    min-height: 100vh;
}

.auth-left {
    flex: 1;
    background: var(--dark);
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.auth-left::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(236, 77, 158, 0.1) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
}

@keyframes rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.auth-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.auth-brand h1 { font-size: 1.8rem; font-weight: 800; }

.auth-left h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.auth-left > p {
    color: var(--gray);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.auth-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
}

.feature span {
    width: 24px; height: 24px;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
}

.auth-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: var(--darker);
}

.auth-card {
    width: 100%;
    max-width: 450px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 2.5rem;
}

.auth-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

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

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--gray);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--input-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    color: var(--light);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(236, 77, 158, 0.05);
}

.form-group input::placeholder { color: var(--gray); }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: var(--gray);
}

.checkbox input { width: auto; }

.forgot-link {
    color: var(--primary-light);
    text-decoration: none;
}

.forgot-link:hover { text-decoration: underline; }

.btn-full { width: 100%; justify-content: center; }

.error-message {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #ef4444;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.success-message {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    color: #22c55e;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
    color: var(--gray);
    font-size: 0.85rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--card-border);
}

.social-login {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.social-login .social-btn {
    width: 100%;
    max-width: 250px;
}

.social-btn {
    padding: 0.75rem;
    background: var(--input-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    color: var(--light);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-btn:hover {
    background: rgba(236, 77, 158, 0.1);
    border-color: rgba(236, 77, 158, 0.3);
}

.auth-switch {
    text-align: center;
    font-size: 0.9rem;
    color: var(--gray);
}

.auth-switch a {
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 600;
}

.auth-switch a:hover { text-decoration: underline; }

@media (max-width: 768px) {
    .auth-container { flex-direction: column; }
    .auth-left { padding: 2rem; min-height: auto; }
    .auth-left h2 { font-size: 1.8rem; }
    .auth-right { padding: 2rem 1rem; }
    .form-row { grid-template-columns: 1fr; }

    .social-login{
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .social-btn{
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
}

.site-logo{
    width:240px;
    height:auto;
}

.btn{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 1.25rem;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary{
    background: linear-gradient(135deg, #ec4d9e 0%, #b95de0 50%, #ff6fc4 100%);
    color: #fff;
    box-shadow: 0 6px 20px rgba(236,77,158,0.35);
}

.btn-primary:hover{
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(236,77,158,0.5);
}

.form-group select option {
    background: var(--darker);
    color: var(--light);
}

.social-btn{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
  
}

.social-btn img{
    width: 18px;
    height: 18px;
}

.auth-brand {
    display: flex;
    justify-content: center;
    align-items: center;
}

.google-btn{
    width: 220px;
    margin: 0 auto;
}



