

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #7c3aed;
    --accent: #a855f7;
    --emerald: #10b981;
    --amber: #f59e0b;
    --rose: #ec4899;
    --text: #1e293b;
    --text-light: #64748b;
    --bg: #f8fafc;
    --white: #ffffff;
    --border: #e2e8f0;
    --error-color: #ef4444;
    --success-color: #10b981;
    --shadow: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.06);
    --shadow-lg: 0 20px 50px -12px rgba(0,0,0,.15);
    --radius: 16px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
    line-height: 1.7;
    color: var(--text);
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 30%, #4338ca 60%, #6366f1 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.auth-container::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    top: -200px;
    right: -150px;
    animation: float 8s ease-in-out infinite;
}

.auth-container::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    bottom: -100px;
    left: -100px;
    animation: float 6s ease-in-out infinite 1s;
}

.auth-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    width: 100%;
    max-width: 1100px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 28px;
    box-shadow:
        0 32px 64px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    overflow: hidden;
    min-height: 620px;
    position: relative;
    z-index: 2;
    animation: card-appear 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.register-wrapper {
    max-width: 1200px;
}

.auth-left {
    background: linear-gradient(160deg, rgba(99, 102, 241, 0.3) 0%, rgba(124, 58, 237, 0.2) 50%, rgba(168, 85, 247, 0.15) 100%);
    color: white;
    padding: 60px 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 48px;
    position: relative;
    overflow: hidden;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-left::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -40%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 7s ease-in-out infinite;
}

.auth-left::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -30%;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 9s ease-in-out infinite 2s;
}

.auth-brand {
    position: relative;
    z-index: 2;
    text-align: center;
}

.brand-icon {
    width: 88px;
    height: 88px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 2.5rem;
    color: #fff;
    animation: pulse-glow 3s ease-in-out infinite;
}

.auth-brand h1 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: white;
    letter-spacing: -0.5px;
}

.auth-brand p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 400;
}

.auth-benefits {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 14px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.93rem;
    font-weight: 500;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    transition: all 0.3s ease;
    animation: slide-in 0.6s ease-out both;
}

.benefit-item:nth-child(1) { animation-delay: 0.2s; }
.benefit-item:nth-child(2) { animation-delay: 0.35s; }
.benefit-item:nth-child(3) { animation-delay: 0.5s; }
.benefit-item:nth-child(4) { animation-delay: 0.65s; }

.benefit-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(6px);
}

.benefit-item i {
    font-size: 1.1rem;
    flex-shrink: 0;
    color: var(--emerald);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 185, 129, 0.15);
    border-radius: 8px;
}

.auth-right {
    padding: 48px 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
}

.auth-box {
    width: 100%;
    max-width: 440px;
    animation: fade-up 0.7s ease-out;
}

.auth-box h2 {
    font-size: 1.85rem;
    color: var(--text);
    margin-bottom: 8px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.auth-subtitle {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 28px;
    font-weight: 400;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

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

.form-group label {
    font-weight: 600;
    color: var(--text);
    font-size: 0.9rem;
    letter-spacing: 0.01em;
}

.form-group input,
.form-group select {
    padding: 13px 16px;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 0.93rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: inherit;
    color: var(--text);
    background: var(--bg);
}

.form-group input:hover,
.form-group select:hover {
    border-color: #cbd5e1;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1), 0 2px 8px rgba(99, 102, 241, 0.08);
}

.form-group input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

.password-field {
    position: relative;
    display: flex;
    align-items: center;
}

.password-field input {
    width: 100%;
    padding-right: 48px;
}

.toggle-password {
    position: absolute;
    right: 14px;
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.toggle-password:hover {
    color: var(--primary);
    background: rgba(99, 102, 241, 0.08);
}

.password-hint {
    color: var(--text-light);
    font-size: 0.82rem;
    margin-top: 4px;
    display: block;
    line-height: 1.4;
}

.error-message {
    color: var(--error-color);
    font-size: 0.82rem;
    display: none;
    font-weight: 500;
}

.error-message.show {
    display: flex;
    align-items: center;
    gap: 5px;
    animation: shake 0.4s ease;
}

.form-group.error input,
.form-group.error select {
    border-color: var(--error-color);
    background-color: rgba(239, 68, 68, 0.04);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.08);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    color: var(--text);
    font-weight: 500;
}

.remember-me input {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary);
    border-radius: 4px;
}

.forgot-password {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.forgot-password:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.terms-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.88rem;
    cursor: pointer;
    color: var(--text);
    line-height: 1.5;
}

.terms-checkbox input {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary);
    flex-shrink: 0;
    margin-top: 2px;
}

.terms-checkbox a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.terms-checkbox a:hover {
    text-decoration: underline;
}

.auth-button {
    padding: 14px 32px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    margin-top: 6px;
    width: 100%;
    font-family: inherit;
    letter-spacing: 0.02em;
    position: relative;
    overflow: hidden;
}

.auth-button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--accent) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.auth-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(99, 102, 241, 0.4);
}

.auth-button:hover::before {
    opacity: 1;
}

.auth-button span,
.auth-button {
    position: relative;
    z-index: 1;
}

.auth-button:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.auth-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 20px 0;
    color: var(--text-light);
    font-size: 0.88rem;
    font-weight: 500;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.social-button {
    padding: 13px 28px;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 0.93rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--white);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: inherit;
}

.social-button:hover {
    border-color: var(--primary-light);
    background: rgba(99, 102, 241, 0.04);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.google-btn {
    width: 100%;
}

.google-btn i {
    font-size: 1.1rem;
    background: linear-gradient(135deg, #4285f4, #ea4335, #fbbc04, #34a853);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-footer {
    text-align: center;
    margin-top: 28px;
    color: var(--text-light);
    font-size: 0.93rem;
}

.auth-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
}

.auth-footer a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

@media (max-width: 1024px) {
    .auth-wrapper {
        grid-template-columns: 1fr;
        max-width: 540px;
    }

    .register-wrapper {
        max-width: 600px;
    }

    .auth-left {
        padding: 44px 36px;
        gap: 32px;
    }

    .auth-right {
        padding: 44px 36px;
    }

    .auth-box {
        max-width: 100%;
    }

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

@media (max-width: 768px) {
    .auth-container {
        padding: 16px;
    }

    .auth-wrapper {
        border-radius: 22px;
    }

    .auth-left {
        padding: 36px 28px;
        gap: 28px;
    }

    .auth-right {
        padding: 36px 28px;
    }

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

    .auth-brand p {
        font-size: 0.95rem;
    }

    .brand-icon {
        width: 72px;
        height: 72px;
        font-size: 2rem;
        border-radius: 22px;
    }

    .benefit-item {
        font-size: 0.88rem;
        padding: 10px 14px;
    }

    .auth-box h2 {
        font-size: 1.6rem;
    }

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

    .form-group input,
    .form-group select {
        padding: 12px 14px;
        font-size: 0.9rem;
    }

    .form-group label {
        font-size: 0.88rem;
    }
}

@media (max-width: 480px) {
    .auth-container {
        padding: 10px;
    }

    .auth-wrapper {
        border-radius: 18px;
    }

    .auth-left {
        padding: 28px 22px;
        gap: 24px;
    }

    .auth-right {
        padding: 28px 22px;
    }

    .auth-brand h1 {
        font-size: 1.5rem;
    }

    .auth-brand p {
        font-size: 0.88rem;
    }

    .brand-icon {
        width: 64px;
        height: 64px;
        font-size: 1.8rem;
        border-radius: 18px;
    }

    .auth-benefits {
        gap: 10px;
    }

    .benefit-item {
        font-size: 0.82rem;
        padding: 9px 12px;
        gap: 10px;
    }

    .benefit-item i {
        font-size: 0.95rem;
        width: 24px;
        height: 24px;
        border-radius: 6px;
    }

    .auth-box h2 {
        font-size: 1.4rem;
    }

    .auth-subtitle {
        margin-bottom: 20px;
        font-size: 0.88rem;
    }

    .auth-form {
        gap: 14px;
    }

    .form-group {
        gap: 5px;
    }

    .form-group label {
        font-size: 0.82rem;
    }

    .form-group input,
    .form-group select {
        padding: 11px 12px;
        font-size: 0.85rem;
    }

    .form-options {
        gap: 8px;
    }

    .auth-button {
        padding: 13px 24px;
        font-size: 0.95rem;
    }

    .remember-me,
    .terms-checkbox {
        font-size: 0.82rem;
    }

    .password-hint {
        font-size: 0.78rem;
    }

    .auth-footer {
        margin-top: 20px;
        font-size: 0.88rem;
    }

    .auth-divider {
        margin: 16px 0;
        gap: 12px;
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-25px); }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 30px rgba(99, 102, 241, 0.15); }
    50% { box-shadow: 0 0 50px rgba(168, 85, 247, 0.3); }
}

@keyframes card-appear {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

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

@keyframes slide-in {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}

.form-group.success input,
.form-group.success select {
    border-color: var(--success-color);
    background-color: rgba(16, 185, 129, 0.04);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.08);
}

.success-message {
    color: var(--success-color);
    font-size: 0.82rem;
    display: block;
    font-weight: 500;
}
