:root {
    --bg-color: #0f172a;
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --primary-color: #6366f1;
    --primary-hover: #4f46e5;
}

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

body {
    font-family: 'Kanit', 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

/* Background animated blobs */
.blob {
    position: absolute;
    filter: blur(80px);
    z-index: -1;
    border-radius: 50%;
    animation: float 10s ease-in-out infinite;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: rgba(99, 102, 241, 0.3);
    top: -100px;
    left: -100px;
}

.blob-2 {
    width: 350px;
    height: 350px;
    background: rgba(16, 185, 129, 0.2);
    bottom: -100px;
    right: -50px;
    animation-delay: -5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-30px) scale(1.05); }
}

.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.auth-container {
    width: 100%;
    padding: 20px;
    display: flex;
    justify-content: center;
}

.auth-card {
    display: flex;
    width: 100%;
    max-width: 900px;
    min-height: 550px;
    overflow: hidden;
}

/* Left Side Branding */
.auth-brand {
    flex: 1;
    padding: 48px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(30, 41, 59, 0) 100%);
    border-right: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.brand-content h2 {
    font-size: 32px;
    font-weight: 700;
    margin: 16px 0 8px;
    background: linear-gradient(to right, #6366f1, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-content p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
}

.auth-logo {
    font-size: 48px;
    color: var(--primary-color);
}

.brand-illustration {
    margin-top: 32px;
    display: flex;
    justify-content: center;
}

.brand-illustration img {
    max-width: 80%;
    height: auto;
    opacity: 0.9;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.2));
}

/* Right Side Forms */
.auth-forms {
    flex: 1;
    position: relative;
    padding: 48px;
    background: rgba(15, 23, 42, 0.3);
}

.form-wrapper {
    display: none;
    flex-direction: column;
    height: 100%;
    justify-content: center;
    animation: fadeIn 0.4s ease forwards;
}

.form-wrapper.active {
    display: flex;
}

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

.form-header {
    margin-bottom: 32px;
}

.form-header h3 {
    font-size: 24px;
    margin-bottom: 8px;
}

.form-header p {
    color: var(--text-secondary);
    font-size: 14px;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-weight: 500;
}

.input-icon-wrapper {
    position: relative;
}

.input-icon-wrapper i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 18px;
    pointer-events: none;
}

.input-icon-wrapper input,
.input-icon-wrapper select {
    width: 100%;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 14px 16px 14px 44px;
    border-radius: 12px;
    font-family: inherit;
    font-size: 14px;
    transition: all 0.3s ease;
    outline: none;
}

.input-icon-wrapper select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' 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 16px center;
    background-size: 16px;
}

.input-icon-wrapper select option {
    background: var(--bg-color);
    color: var(--text-primary);
}

.input-icon-wrapper input:focus,
.input-icon-wrapper select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    font-size: 13px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--text-secondary);
}

.remember-me input {
    accent-color: var(--primary-color);
}

.forgot-password {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

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

.btn-primary {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-block {
    width: 100%;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
}

.auth-switch {
    margin-top: 24px;
    text-align: center;
    font-size: 14px;
    color: var(--text-secondary);
}

.auth-switch a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    margin-left: 4px;
}

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

/* Responsive */
@media (max-width: 768px) {
    .auth-card {
        flex-direction: column;
    }
    
    .auth-brand {
        padding: 32px;
        border-right: none;
        border-bottom: 1px solid var(--glass-border);
    }
    
    .brand-illustration {
        display: none;
    }
    
    .auth-forms {
        padding: 32px;
    }
}
