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

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    height: 100vh;
    overflow: hidden;
}

/* Split Screen Container */
.split-container {
    display: flex;
    height: 100vh;
    width: 100%;
}

/* Left Side - Image/Branding */
.left-side {
    flex: 1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    position: relative;
    overflow: hidden;
}

.left-side::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><rect width="100" height="100" fill="rgba(255,255,255,0.05)"/><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="2"/></svg>');
    background-size: 100px 100px;
    opacity: 0.3;
}

.branding-content {
    position: relative;
    z-index: 1;
    color: white;
    text-align: center;
    max-width: 500px;
}

.brand-logo {
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    font-size: 48px;
    font-weight: bold;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.branding-content h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.branding-content p {
    font-size: 18px;
    line-height: 1.6;
    opacity: 0.95;
    margin-bottom: 40px;
}

.feature-list {
    text-align: left;
    display: inline-block;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 16px;
}

.feature-item svg {
    width: 24px;
    height: 24px;
    margin-right: 12px;
    flex-shrink: 0;
}

/* Right Side - Form */
.right-side {
    flex: 1;
    background: #ffffff;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 40px;
    overflow-y: auto;
}

.form-container {
    width: 100%;
    max-width: 450px;
    padding: 20px;
    margin-top: 20px;
}

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

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

.form-header p {
    color: #718096;
    font-size: 16px;
}

/* Form Styling */
.auth-form {
    width: 100%;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

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

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

.form-group label {
    display: block;
    color: #2d3748;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 15px;
    color: #2d3748;
    transition: all 0.3s ease;
    background: #ffffff;
    outline: none;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group input::placeholder {
    color: #a0aec0;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

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

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Form Note */
.form-note {
    text-align: center;
    margin-top: 25px;
    color: #718096;
    font-size: 15px;
}

.form-note a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.form-note a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Alert Messages */
.alert-error {
    background: #fee;
    border: 1px solid #fcc;
    color: #c33;
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-error div {
    margin-bottom: 5px;
}

.alert-error div:last-child {
    margin-bottom: 0;
}

.alert-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    margin: 25px 0;
    color: #cbd5e0;
    font-size: 14px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.divider::before {
    margin-right: 15px;
}

.divider::after {
    margin-left: 15px;
}

/* Social Login Buttons */
.social-login {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.social-btn {
    flex: 1;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    background: white;
    color: #4a5568;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.social-btn:hover {
    border-color: #cbd5e0;
    background: #f7fafc;
}

/* Remember Me Checkbox */
.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 14px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
}

.remember-me input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.forgot-password {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

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

/* Loading Animation */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.submit-btn.loading::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    margin-left: 10px;
    animation: spin 0.6s linear infinite;
}

/* Full Width Form Group */
.form-group.full-width {
    grid-column: 1 / -1;
}

/* Select Dropdown Styling */
.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%232d3748' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
    cursor: pointer;
}

.form-group select option {
    padding: 10px;
}

/* ============================================
   RESPONSIVE DESIGN - ONLY LAYOUT CHANGES
   Content and font sizes remain the same
   ============================================ */

/* Tablet and Mobile - Stack vertically */
@media (max-width: 968px) {
    body {
        height: auto;
        min-height: 100vh;
        overflow-y: auto;
        overflow-x: hidden;
    }

    .split-container {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }

    .left-side {
        flex: 0 0 auto;
        padding: 40px 30px;
    }

    .right-side {
        flex: 0 0 auto;
        padding: 40px 30px;
    }

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

/* Small tablets and large phones */
@media (max-width: 640px) {
    .left-side {
        padding: 30px 20px;
    }

    .right-side {
        padding: 30px 20px;
    }

    .form-container {
        padding: 10px;
    }

    .form-group input,
    .form-group select {
        font-size: 16px;
        /* Prevents zoom on iOS */
    }
}

/* Very small devices */
@media (max-width: 400px) {
    .left-side {
        padding: 25px 15px;
    }

    .right-side {
        padding: 25px 15px;
    }
}
