* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: #D7D7D7;
    /* Light Gray background */
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    display: flex;
    max-width: 1100px;
    width: 100%;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(46, 46, 46, 0.3);
    /* Dark Gray shadow */
}

.left-panel {
    flex: 1;
    background: linear-gradient(135deg, #E5453B 0%, #2E2E2E 100%);
    /* Red to Dark Gray gradient */
    padding: 50px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Bulb icon/pattern in background */
.left-panel::before {
    content: "💡";
    position: absolute;
    bottom: -20px;
    right: -20px;
    font-size: 150px;
    opacity: 0.1;
    transform: rotate(15deg);
}

.left-panel h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    position: relative;
}

.left-panel h1 span {
    color: #E5453B;
    /* Red for RTS text */
    background: white;
    padding: 5px 15px;
    border-radius: 8px;
    display: inline-block;
}

.left-panel p {
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.6;
    position: relative;
}

.right-panel {
    flex: 1;
    padding: 50px;
    background: white;
}

.right-panel h2 {
    font-size: 2rem;
    color: #2E2E2E;
    /* Dark Gray */
    margin-bottom: 10px;
}

.right-panel .subtitle {
    color: #666;
    margin-bottom: 30px;
}

/* Header row for sign in and sign up link */
.right-panel .header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.right-panel .header-row h2 {
    margin: 0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #2E2E2E;
    /* Dark Gray */
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e1e1;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #E5453B;
    /* Red on focus */
}

.radio-group {
    display: flex;
    gap: 20px;
    margin: 15px 0;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: normal;
    cursor: pointer;
}

.radio-group input[type="radio"] {
    width: auto;
    margin-right: 5px;
}

.radio-group input[type="radio"]:checked {
    accent-color: #E5453B;
    /* Red radio button */
}

.btn-login {
    width: 100%;
    padding: 14px;
    background: #E5453B;
    /* RTS Red */
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 20px;
}

.btn-login:hover {
    background: #c43a31;
    /* Darker red on hover */
}

.links {
    margin-top: 20px;
    text-align: center;
}

.links a {
    color: #E5453B;
    /* RTS Red */
    text-decoration: none;
    font-size: 0.95rem;
    cursor: pointer;
}

.links a:hover {
    color: #2E2E2E;
    cursor: pointer;
    /* Dark Gray on hover */
    text-decoration: underline;
}

.separator {
    margin: 0 10px;
    color: #ddd;
}

.alert {
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert-error {
    background: #ffe9e7;
    color: #E5453B;
    /* Red */
    border: 1px solid #fcc;
}

.alert-success {
    background: #e7f3e7;
    color: #2E2E2E;
    /* Dark Gray */
    border: 1px solid #cfc;
}

.register-link {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    text-align: center;
}

.register-link a {
    color: #E5453B;
    /* RTS Red */
    font-weight: 600;
    text-decoration: none;
}

.register-link a:hover {
    color: #2E2E2E;
    /* Dark Gray on hover */
    text-decoration: underline;
}

.windows-activate {
    margin-top: 30px;
    font-size: 0.8rem;
    color: #999;
    text-align: center;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

/* RTS Logo/Branding */
.rts-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.rts-logo {
    font-size: 2rem;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.2));
}

.rts-text {
    font-size: 1.8rem;
    font-weight: bold;
    color: #2E2E2E;
    /* Dark Gray */
}

.rts-text span {
    color: #fff;
    /* This should be #E5453B for red */
}

.login-link {
    color: #666;
    font-size: 0.95rem;
}

.login-link a {
    color: #E5453B;
    text-decoration: none;
    font-weight: 600;
    margin-left: 5px;
}

.login-link a:hover {
    text-decoration: underline;
}

/* Custom SweetAlert styles */
.custom-swal-popup {
    border-radius: 15px !important;
    padding: 20px !important;
}

.custom-swal-title {
    color: #2E2E2E !important;
    font-size: 1.8rem !important;
}

.custom-swal-input {
    border: 2px solid #e1e1e1 !important;
    border-radius: 8px !important;
    padding: 12px !important;
    margin: 10px 0 !important;
}

.custom-swal-input:focus {
    border-color: #E5453B !important;
    box-shadow: 0 0 0 3px rgba(229, 69, 59, 0.1) !important;
}

.radio-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin: 20px 0;
}

.radio-container label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #2E2E2E;
    font-size: 1.1rem;
    cursor: pointer;
}

.radio-container input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #E5453B;
}

/* ===== TABLET STYLES (768px to 1024px) - MATCH LAPTOP ===== */
@media (min-width: 768px) and (max-width: 1024px) {
    .container {
        flex-direction: row;
        max-width: 900px;
        margin: 0 auto;
    }
    
    .left-panel {
        flex: 1;
        padding: 40px;
    }
    
    .left-panel h1 {
        font-size: 2.2rem;
        margin-bottom: 15px;
    }
    
    .left-panel p {
        font-size: 1rem;
    }
    
    .right-panel {
        flex: 1;
        padding: 40px;
    }
    
    .right-panel h2 {
        font-size: 1.8rem;
    }
    
    .right-panel .subtitle {
        margin-bottom: 25px;
    }
    
    .radio-group {
        flex-direction: row;
        gap: 15px;
    }
    
    .form-group input,
    .form-group select {
        padding: 12px 15px;
    }
    
    .btn-login {
        padding: 14px;
        font-size: 1.1rem;
    }
    
    .links {
        flex-direction: row;
        gap: 0;
    }
    
    .separator {
        display: inline;
        margin: 0 10px;
    }
    
    .right-panel .header-row {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

/* ===== MOBILE STYLES (767px and below) ===== */
@media (max-width: 767px) {
    body {
        padding: 10px;
        min-height: 100vh;
        align-items: flex-start;
    }
    
    .container {
        flex-direction: column;
        max-width: 100%;
        margin: 10px auto;
    }
    
    .left-panel {
        padding: 30px 20px;
    }
    
    .left-panel h1 {
        font-size: 2rem;
    }
    
    .right-panel {
        padding: 30px 20px;
    }
    
    .right-panel h2 {
        font-size: 1.8rem;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .right-panel .header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* ===== SMALL MOBILE STYLES (480px and below) ===== */
@media (max-width: 480px) {
    .left-panel {
        padding: 20px 15px;
    }
    
    .left-panel h1 {
        font-size: 1.8rem;
    }
    
    .right-panel {
        padding: 20px 15px;
    }
    
    .right-panel h2 {
        font-size: 1.5rem;
    }
    
    .form-group input,
    .form-group select {
        padding: 10px 12px;
    }
    
    .links {
        flex-direction: column;
        gap: 10px;
    }
    
    .separator {
        display: none;
    }
}

/* Bulb styling for superadmin redirect */
.bulb-container {
    position: absolute;
    bottom: 30px;
    left: 30px;
    cursor: pointer;
    opacity: 0.3;
    transition: all 0.3s ease;
    z-index: 10;
}

.bulb-container:hover {
    opacity: 0.7;
    transform: scale(1.1);
}

.bulb-icon {
    font-size: 40px;
    color: #FFD700;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
    transition: all 0.3s ease;
}

.bulb-container:hover .bulb-icon {
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
}

.bulb-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    margin-bottom: 10px;
}

.bulb-container:hover .bulb-tooltip {
    opacity: 1;
}

/* Optional: Add click animation */
.bulb-clicked {
    animation: bulbClick 0.3s ease;
}

@keyframes bulbClick {
    0% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(0.9);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 0.3;
    }
}

/* ===== LANDSCAPE MODE ===== */
@media (max-height: 500px) and (orientation: landscape) {
    body {
        padding: 5px;
    }
    
    .left-panel {
        padding: 15px;
    }
    
    .left-panel h1 {
        font-size: 1.5rem;
        margin-bottom: 5px;
    }
    
    .left-panel p {
        font-size: 0.9rem;
    }
    
    .right-panel {
        padding: 15px;
    }
    
    .form-group {
        margin-bottom: 10px;
    }
    
    .radio-group {
        margin: 5px 0;
    }
}