:root {
    --primary-color: #f3ba2f; /* Binance Yellow */
    --primary-hover: #e1ad25;
    --bg-dark: #0b0e11;
    --card-bg: rgba(16, 24, 48, 0.15); /* Bluish crystal tint */
    --input-bg: rgba(0, 0, 0, 0.15);
    --input-border: rgba(255, 255, 255, 0.08);
    --text-main: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.55);
    --error-color: #ff4d6d;
    --success-color: #00f5d4;
    --glass-border: rgba(100, 149, 237, 0.2); /* Slight blue border */
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.4;
    overflow-x: hidden;
}

.ct-login-wrapper {
    display: flex;
    min-height: 100vh;
    position: relative;
    background: #000;
    overflow: hidden;
}

.ct-login-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1639762681485-074b7f938ba0?q=80&w=2000') no-repeat center center;
    background-size: cover;
    opacity: 0.4;
    filter: grayscale(100%);
    z-index: 1;
}

.ct-login-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(11, 14, 17, 0.9) 0%, rgba(11, 14, 17, 0.4) 100%);
    z-index: 2;
}

/* Visual Section (Left Side) */
.ct-login-visual {
    flex: 1.2; /* Reduced flex to bring it closer */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end; /* Align content to the right of this section */
    z-index: 5;
    padding-right: 20px; /* Minimal padding to stay close to form */
}

/* Remove the old background logic from visual */
.ct-login-visual::before, .ct-visual-overlay {
    display: none;
}

.ct-visual-content {
    position: relative;
    z-index: 5;
    max-width: 580px;
    padding: 40px;
    text-align: left;
}

.ct-visual-content h2 {
    font-size: 56px; /* Increased from 48px */
    line-height: 1.1;
    font-weight: 800;
    color: #fff;
    margin-bottom: 24px;
}

.ct-visual-content h2 span {
    color: var(--primary-color);
}

.ct-visual-content p {
    font-size: 22px; /* Increased from 18px */
    color: var(--text-muted);
    max-width: 500px;
}

/* Form Container (Right Side) */
.ct-login-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Align content to the left of this section */
    padding: 40px 40px 40px 20px; /* Reduced left padding to bring closer to visual */
    z-index: 10;
    position: relative;
}

.ct-login-card {
    background: var(--card-bg);
    backdrop-filter: blur(8px) saturate(150%); /* Reduced blur from 20px to 8px */
    -webkit-backdrop-filter: blur(8px) saturate(150%);
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: 24px;
    width: 100%;
    max-width: 420px;
    box-shadow: 
        0 8px 32px 0 rgba(0, 0, 0, 0.8),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1); /* Inner glass highlight */
    animation: fadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.ct-login-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 0%,
        rgba(255, 255, 255, 0.05) 45%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0.05) 55%,
        transparent 100%
    );
    transform: rotate(25deg);
    pointer-events: none;
}

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

.ct-login-header {
    text-align: center;
    margin-bottom: 32px;
}

.ct-logo img {
    height: 50px; /* Reduced */
    margin-bottom: 20px;
    filter: drop-shadow(0 0 8px rgba(243, 186, 47, 0.2));
}

.ct-login-header h1 {
    font-size: 24px; /* Smarter font size */
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.ct-login-header p {
    color: var(--text-muted);
    font-size: 14px;
}

/* Form Styling */
.ct-form-group {
    margin-bottom: 20px;
}

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

.ct-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.ct-input-wrapper i {
    position: absolute;
    left: 14px;
    color: var(--text-muted);
    font-size: 16px;
}

.ct-input-wrapper input {
    width: 100%;
    padding: 12px 60px 12px 42px; /* Increased right padding to 50px */
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 10px;
    color: var(--text-main);
    font-size: 14px;
    transition: all 0.2s ease;
}

.ct-input-wrapper input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 3px rgba(243, 186, 47, 0.1);
}

.ct-toggle-password {
    position: absolute;
    right: 22px; /* Increased margin from right for a smarter look */
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    transition: color 0.2s;
}

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

.ct-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.ct-checkbox input {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    accent-color: var(--primary-color);
}

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

/* Buttons */
.ct-btn {
    width: 100%;
    padding: 14px;
    border-radius: 10px;
    border: none;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ct-btn-primary {
    background: var(--primary-color);
    color: #000;
}

.ct-btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.btn-loader {
    display: none;
    font-size: 18px;
}

.ct-btn.loading .btn-text { opacity: 0; }
.ct-btn.loading .btn-loader { display: block; position: absolute; }

/* Messages */
.ct-message {
    margin-bottom: 20px;
    padding: 12px;
    border-radius: 10px;
    font-size: 13px;
    display: none;
}

.ct-message.error { background: rgba(246, 70, 93, 0.1); color: var(--error-color); border: 1px solid rgba(246, 70, 93, 0.15); display: block; }
.ct-message.success { background: rgba(14, 203, 129, 0.1); color: var(--success-color); border: 1px solid rgba(14, 203, 129, 0.15); display: block; }

.ct-login-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: var(--text-muted);
}

.ct-login-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

/* Responsive */
.auth-section {
    transition: opacity 0.3s ease;
}

@media (max-width: 992px) {
    .ct-login-visual { display: none; }
    .ct-login-container { padding: 20px; }
}

@media (max-width: 480px) {
    .ct-login-card {
        padding: 30px 20px;
        border-radius: 0;
        height: 100vh;
        max-width: 100%;
    }
}
