/* ========================================
   RESET & BASE STYLES
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #ffffff !important;
    color: #1a202c !important;
    overflow-x: hidden;
}

/* ========================================
   DARK MODE PREVENTION
   ======================================== */
body.dark,
html.dark,
[data-theme="dark"],
body.dark *,
html.dark *,
[data-theme="dark"] * {
    background: #ffffff !important;
    color: #1a202c !important;
}

body *,
html *,
h1, h2, h3, h4, h5, h6,
p, span, label,
input, textarea, select,
button, a, div {
    color: #1a202c !important;
}

input[type="email"],
input[type="password"],
input[type="text"],
input[type="email"]:focus,
input[type="password"]:focus,
input[type="text"]:focus {
    background: white !important;
    color: #1a202c !important;
}

input::placeholder {
    color: #94a3b8 !important;
    opacity: 1;
}

/* ========================================
   LAYOUT CONTAINER
   ======================================== */
.login-container {
    min-height: 100vh;
    display: flex;
}

/* ========================================
   LEFT SIDE - BRANDING
   ======================================== */
.login-left {
    flex: 1;
    background: linear-gradient(135deg, #f97316 0%, #c2410c 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 50%;
    height: 100vh;
    overflow: hidden;
    z-index: 1;
}

.login-left::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.brand-content {
    text-align: center;
    color: white;
    z-index: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
}

.brand-logo {
    width: 300px;
    height: 300px;
    object-fit: contain;
    animation: float 3s ease-in-out infinite;
}

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

/* ========================================
   RIGHT SIDE - FORM
   ======================================== */
.login-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc !important;
    padding: 40px;
    margin-left: 50%;
    min-height: 100vh;
}

.login-right.dark,
.login-right[data-theme="dark"] {
    background: #f8fafc !important;
}

.form-container {
    width: 100%;
    max-width: 400px;
}

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

.form-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: #1a202c !important;
    margin-bottom: 8px;
}

.form-header p {
    font-size: 16px;
    color: #64748b !important;
}

/* ========================================
   ALERT MESSAGES
   ======================================== */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
}

.alert.error {
    background: #fef2f2 !important;
    color: #dc2626 !important;
    border: 1px solid #fecaca !important;
}

.alert.success {
    background: #f0fdf4 !important;
    color: #16a34a !important;
    border: 1px solid #bbf7d0 !important;
}

/* ========================================
   FORM ELEMENTS
   ======================================== */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-section {
    background: white;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
}

.form-section:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: #e2e8f0;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f1f5f9;
}

.section-header i {
    font-size: 20px;
    color: #f97316;
}

.section-header span {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b !important;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.input-group:last-child {
    margin-bottom: 0;
}

.input-group label {
    font-size: 14px;
    font-weight: 500;
    color: #475569 !important;
    margin-bottom: 4px;
}

.input-group .required {
    color: #ef4444;
    font-weight: 600;
}

.input-group .optional {
    color: #94a3b8;
    font-weight: 400;
    font-size: 12px;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    background: #ffffff !important;
    color: #1e293b !important;
    transition: all 0.2s ease;
    font-family: inherit;
}

.input-group input:focus,
.input-group textarea:focus {
    outline: none;
    border-color: #f97316;
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.08);
    background: #ffffff !important;
}

.input-group textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.6;
}

.input-group input::placeholder,
.input-group textarea::placeholder {
    color: #94a3b8 !important;
    font-weight: 400;
    opacity: 1;
}

.password-wrapper {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #6b7280;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-password:hover {
    color: #374151;
    background: #f3f4f6;
}

/* ========================================
   FORM ACTIONS
   ======================================== */
.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 8px 0;
}

.remember {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #6b7280;
}

.remember input {
    width: 16px;
    height: 16px;
    accent-color: #f97316;
}

.forgot {
    font-size: 14px;
    color: #f97316;
    text-decoration: none;
    font-weight: 500;
}

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

/* ========================================
   BUTTONS
   ======================================== */
.login-btn {
    width: 100%;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%) !important;
    color: white !important;
    border: none;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.25);
}

.login-btn:hover {
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%) !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.35);
}

.login-btn:active {
    transform: translateY(0);
}

.login-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* ========================================
   USER INFO CARD
   ======================================== */
.user-info-card {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1.5px solid #86efac;
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.user-info-card i {
    font-size: 24px;
    color: #16a34a;
    flex-shrink: 0;
}

.user-info-card strong {
    display: block;
    font-size: 13px;
    color: #166534 !important;
    margin-bottom: 4px;
}

.user-info-card p {
    font-size: 14px;
    color: #15803d !important;
    margin: 0;
}

.user-info-card p span {
    color: #16a34a !important;
    font-weight: 500;
}

/* ========================================
   INFO CARD
   ======================================== */
.info-card {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 1.5px solid #fde68a;
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.info-card i {
    font-size: 20px;
    color: #f59e0b;
    flex-shrink: 0;
    margin-top: 2px;
}

.info-card strong {
    display: block;
    font-size: 14px;
    color: #92400e !important;
    margin-bottom: 6px;
    font-weight: 600;
}

.info-card p {
    font-size: 13px;
    color: #78350f !important;
    margin: 0;
    line-height: 1.6;
}

/* ========================================
   REGISTER LINK
   ======================================== */
.register-link {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
}

.register-link p {
    color: #64748b !important;
    font-size: 14px;
    margin-bottom: 12px;
}

.register-link a {
    display: inline-block;
    color: #f97316 !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
    padding: 8px 16px;
    border-radius: 8px;
}

.register-link a:hover {
    background: #fff7ed;
    color: #ea580c !important;
    transform: translateX(2px);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
    }
    
    .login-left {
        position: relative;
        width: 100%;
        height: auto;
        min-height: 40vh;
        padding: 20px;
    }
    
    .brand-content {
        padding: 20px;
    }
    
    .brand-logo {
        width: 150px;
        height: 150px;
    }
    
    .login-right {
        margin-left: 0;
        padding: 20px;
        min-height: auto;
    }
    
    .form-container {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .login-left {
        min-height: 30vh;
    }
    
    .brand-logo {
        width: 120px;
        height: 120px;
    }
    
    .form-header h2 {
        font-size: 24px;
    }
}

