:root {
    --primary: #1a73e8;
    --primary-dark: #0b3a8f;
    --bg: #f0f4f9;
    --text: #202124;
    --text-secondary: #5f6368;
    --border: #dadce0;
    --error: #d93025;
    --success: #188038;
    --radius: 12px;
    --shadow: 0 4px 20px rgba(0,0,0,0.06);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Segoe UI', 'Roboto', Arial, sans-serif;
    background: var(--bg);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Full-page auth layout */
.auth-wrapper {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

.auth-left {
    flex: 0 0 35%;
    background: linear-gradient(135deg, #1a73e8 0%, #0b3a8f 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Decorative circles */
.auth-left::before,
.auth-left::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    pointer-events: none;
}

.auth-left::before {
    width: 250px;
    height: 250px;
    top: -60px;
    right: -80px;
}

.auth-left::after {
    width: 350px;
    height: 350px;
    bottom: -120px;
    left: -100px;
}

.logo-white {
    width: 150px;
    height: auto;
    margin-bottom: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    position: relative;
    z-index: 1;
}

.auth-left h2 {
    font-size: 26px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.auth-left p {
    font-size: 14px;
    opacity: 0.85;
    max-width: 280px;
    line-height: 1.5;
    position: relative;
    z-index: 1;
}

.auth-right {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    background: #fff;
}

.form-container {
    width: 100%;
    max-width: 420px;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-container h1 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 24px;
}

.input-group {
    margin-bottom: 16px;
    text-align: left;
}

.input-group input {
    width: 100%;
    padding: 14px 20px;
    font-size: 15px;
    border: 2px solid var(--border);
    border-radius: 50px;
    outline: none;
    transition: var(--transition);
    background: #fff;
}

.input-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26,115,232,0.15);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    color: #fff;
    background: var(--primary);
    margin-bottom: 10px;
    letter-spacing: 0.3px;
}

.btn:hover {
    background: var(--primary-dark);
    box-shadow: 0 6px 16px rgba(26,115,232,0.4);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: rgba(26,115,232,0.05);
    transform: translateY(-1px);
}

.link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
    display: inline-block;
    margin: 4px 0;
    cursor: pointer;
}

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

.divider {
    display: flex;
    align-items: center;
    margin: 16px 0;
    color: var(--text-secondary);
    font-size: 13px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border);
}

.divider::before { margin-right: 10px; }
.divider::after { margin-left: 10px; }

.error-msg {
    color: var(--error);
    font-size: 12px;
    margin-top: 6px;
    display: none;
}

.success-msg {
    color: var(--success);
    font-size: 13px;
    margin-top: 12px;
    display: none;
}

/* Success animation */
@keyframes successPop {
    0% { transform: scale(0.9); opacity: 0; }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); opacity: 1; }
}

.success-animate {
    animation: successPop 0.5s ease;
    background: #e6f4ea;
    color: #188038;
    padding: 12px 20px;
    border-radius: 50px;
    font-weight: 500;
}

.hidden {
    display: none;
}

/* Turnstile centered */
.cf-turnstile {
    display: flex;
    justify-content: center;
    margin: 12px 0;
}

/* Responsive */
@media (max-width: 900px) {
    .auth-wrapper {
        flex-direction: column;
    }
    .auth-left {
        flex: 0 0 auto;
        padding: 30px 20px;
    }
    .logo-white {
        width: 90px;
    }
    .auth-left h2 {
        font-size: 20px;
    }
    .auth-right {
        padding: 30px 20px;
    }
    .form-container {
        max-width: 100%;
    }
}