* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
}

.container {
    display: flex;
    width: 100vw;
    min-height: 100vh;
    background: white;
}

.left-panel {
    flex: 1.4;
    background: linear-gradient(135deg, rgba(15,15,15,0.95) 0%, rgba(30, 0, 0, 0.7) 100%),
                url('../assets/images/tech-bg.png') center/cover no-repeat;
    padding: 50px 60px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Red diagonal edge on the right side */
.left-panel::after {
    content: "";
    position: absolute;
    top: -10%;
    right: -40px;
    width: 60px;
    height: 120%;
    background: #E5453B;
    transform: rotate(12deg);
    z-index: 2;
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
}

.left-panel-logo {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: contain;
    margin-right: 15px;
    background: #ffffff;
    padding: 6px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.4);
    border: 2.5px solid transparent;
    background-image: linear-gradient(#ffffff, #ffffff), linear-gradient(135deg, #E5453B, #8b5cf6, #3b82f6);
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

.rts-brand-left {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    z-index: 2;
}

.brand-text-col {
    display: flex;
    flex-direction: column;
}

.rts-text-left {
    font-size: 1.6rem;
    font-weight: 900;
    line-height: 1.1;
    color: white;
}

.rts-text-left span {
    color: #E5453B;
}

.brand-slogan {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
    margin-top: 4px;
    letter-spacing: 1px;
}

.left-panel-content {
    margin-top: auto;
    margin-bottom: auto;
    z-index: 2;
}

.left-panel h1 {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 20px;
    position: relative;
    color: white;
}

.headline-divider {
    width: 50px;
    height: 3px;
    background: #E5453B;
    margin-bottom: 20px;
}

.left-panel h1 span {
    color: #ff6b6b; /* Soft vibrant red */
    background: transparent;
    padding: 0;
}

.left-panel p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    max-width: 90%;
    margin-bottom: 30px;
}

.feature-grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    flex: 1;
    min-width: 90px;
}

.feature-item i {
    font-size: 2rem;
    color: #E5453B;
    background: transparent;
    border: 2px solid rgba(229, 69, 59, 0.3);
    padding: 12px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.feature-item:hover i {
    transform: translateY(-5px);
    background: rgba(229, 69, 59, 0.1);
    border-color: #E5453B;
    box-shadow: 0 5px 15px rgba(229, 69, 59, 0.2);
}

.feature-item span {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.3;
}

.info-box {
    margin-top: 30px;
    background: rgba(10, 10, 10, 0.6);
    border: 1px solid rgba(255,255,255,0.05);
    border-left: 3px solid #E5453B;
    border-radius: 12px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 85%;
}

.info-box i {
    font-size: 2rem;
    color: #E5453B;
}

.info-box p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    color: rgba(255,255,255,0.9);
}

.info-box p span {
    color: #E5453B;
    font-weight: 600;
}

.right-panel {
    flex: 1;
    padding: 40px;
    background: #f4f6f8;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.login-form-wrapper {
    width: 100%;
    max-width: 460px;
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.06);
    z-index: 2;
}

.right-panel-footer {
    position: absolute;
    bottom: 30px;
    width: 100%;
    text-align: center;
    font-size: 0.85rem;
    color: #999;
}

.form-header-center {
    text-align: center;
    margin-bottom: 25px;
}

.form-logo {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: contain;
    margin: 0 auto 12px auto;
    box-shadow: 0 6px 20px rgba(229, 69, 59, 0.2);
    display: block;
    background: #ffffff;
    padding: 8px;
    border: 2.5px solid transparent;
    background-image: linear-gradient(#ffffff, #ffffff), linear-gradient(135deg, #E5453B, #8b5cf6, #3b82f6);
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

.form-header-center h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #2E2E2E;
    margin-bottom: 8px;
}

.form-header-center .subtitle {
    color: #888;
    font-size: 0.9rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: #4a4a4a;
    font-weight: 600;
    font-size: 0.95rem;
}

.input-icon-wrapper {
    position: relative;
    width: 100%;
}

.input-icon-left {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    font-size: 1.1rem;
    z-index: 2;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 14px 20px 14px 45px;
    background: white;
    border: 1px solid #e1e1e1;
    border-radius: 12px;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    color: #2e2e2e;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #E5453B;
    box-shadow: 0 0 0 3px rgba(229, 69, 59, 0.1);
}

.role-selector-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 10px;
}

.role-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: white;
    border: 1px solid #e1e1e1;
    border-radius: 12px;
    padding: 15px 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.role-card input[type="radio"] {
    display: none;
}

.role-card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #888;
}

.role-card-content i {
    font-size: 1.5rem;
}

.role-card-content span {
    font-size: 0.9rem;
    font-weight: 600;
}

.role-card:hover {
    background: #fcfcfc;
    border-color: #d1d1d1;
}

.role-card:has(input[type="radio"]:checked) {
    border: 1.5px solid #E5453B;
    background: rgba(229, 69, 59, 0.03);
}

.role-card:has(input[type="radio"]:checked) .role-card-content {
    color: #E5453B;
}

.btn-login {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #E5453B, #ff6b6b);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 20px rgba(229, 69, 59, 0.3);
    margin-top: 20px;
}

.btn-login:hover {
    background: linear-gradient(135deg, #d33c33, #ff5252);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 25px rgba(229, 69, 59, 0.4);
}

.btn-login:active {
    transform: translateY(1px);
}

.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;
}

/* FLASH 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::after {
        display: none;
    }
    
    .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 15px 10px 45px;
    }
    
    .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;
    }
}