/* auth-new.css */
:root {
    --primary: #7C3AED;
    --background: #F8FAFC;
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-muted: #94A3B8;
    --border: #E2E8F0;
    --gradient-primary: linear-gradient(135deg, #7C3AED 0%, #DB2777 100%);
}

body {
    margin: 0;
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--background);
}

.auth-split-container {
    display: flex;
    align-items: stretch;
    min-height: 100vh;
    width: 100%;
}

.auth-left-pane {
    flex: 1;
    background: linear-gradient(135deg, #DCEFC8 0%, #FFFFFF 55%, #EAD6FC 100%);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px;
    overflow: hidden;
    border-right: 1px solid var(--border);
}

.auth-right-pane {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 60px 40px;
    position: relative;
    background: #FFFFFF;
    min-width: 0;
}

@media (max-width: 900px) {
    .auth-split-container {
        flex-direction: column;
    }
    .auth-left-pane {
        display: none !important;
    }
    .auth-right-pane {
        padding: 80px 24px 40px 24px !important;
    }
}

.attractive-auth-btn {
    position: relative;
    overflow: hidden;
    transition: transform 200ms ease, box-shadow 200ms ease;
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 14px 0;
    font-size: 15px;
    font-weight: 600;
    border-radius: 9999px;
    cursor: pointer;
    width: 100%;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.2);
}

.attractive-auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(124, 58, 237, 0.3);
}

.attractive-auth-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg);
    animation: sweep 4s infinite ease-in-out;
}

@keyframes sweep {
    0% { left: -150%; }
    30% { left: 150%; }
    100% { left: 150%; }
}

.floating-input-group {
    position: relative;
    width: 100%;
    margin-bottom: 14px;
    display: flex;
    flex-direction: column;
}

.floating-input {
    width: 100%;
    background: #FFFFFF;
    border: 1.5px solid var(--border);
    padding: 20px 16px 8px 16px;
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 15px;
    outline: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}

.floating-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 12px rgba(124, 58, 237, 0.12);
}

.floating-label {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    pointer-events: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-input:focus ~ .floating-label,
.floating-input:not(:placeholder-shown) ~ .floating-label,
.floating-input:-webkit-autofill ~ .floating-label {
    top: 6px;
    transform: none;
    font-size: 10px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.floating-input:not(:placeholder-shown):not(:focus) ~ .floating-label,
.floating-input:-webkit-autofill:not(:focus) ~ .floating-label {
    color: var(--text-secondary);
}

/* Fix Chrome Autofill blue background & text color */
.floating-input:-webkit-autofill,
.floating-input:-webkit-autofill:hover, 
.floating-input:-webkit-autofill:focus, 
.floating-input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #FFFFFF inset !important;
    -webkit-text-fill-color: var(--text-primary) !important;
    transition: background-color 5000s ease-in-out 0s;
}

.password-toggle {
    position: absolute;
    right: 16px;
    top: 26px;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--primary);
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    padding: 0;
}

/* Alert styles for error and success */
.alert {
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.alert-error {
    background: rgba(239, 68, 68, 0.1);
    color: #EF4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}
.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: #10B981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}
