/* ==============================================================================
   🚀 PREMIUM WORKSPACE LOGIN STYLING — SIPRINOVATECH ERP
   ============================================================================== */
:root {
    --primary: #2d3e40;
    --accent: #405c5e;
    --light-bg: #f4f7f6;
    --dark-text: #1e2729;
    --success: #27ae60;
    --border-color: #e2e8f0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

#mainSection {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #eef2f3 0%, #8e9eab 100%);
    padding: 20px;
}

.login-container {
    display: flex;
    width: 1050px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    min-height: 600px;
    backdrop-filter: blur(10px);
}

/* 🎞️ Left Panel Frame Layout */
.company-logo {
    width: 50%;
    background: var(--primary);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 50px;
    color: white;
    overflow: hidden;
}

.company-logo::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(45, 62, 64, 0.94) 0%, rgba(19, 26, 27, 0.88) 100%);
    z-index: 2;
}

.name, .logo-footer-text {
    position: relative;
    z-index: 3;
}

.back-home {
    position: absolute;
    top: 30px;
    left: 40px;
    z-index: 10;
    color: rgba(255, 255, 255, 0.7);
    background-color: var(--accent);
    border-radius: 4px;
    padding-right: 4px;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.back-home:hover {
    color: white;
    transform: translateX(-3px);
}

.name h3 {
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 8px;
}

.name h1 {
    font-size: 38px;
    font-weight: 800;
    letter-spacing: 0.5px;
    line-height: 1.2;
    margin-bottom: 12px;
}

.name p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
}

/* Background Slider Animations Matrix */
.slideshow-wrapper {
    background-color: var(--light-bg);
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1;
}

.slide-img {
    position: absolute;
    top: 0; left: 0; width: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 1.2s ease-in-out, transform 4s ease-in-out;
}

.slide-img.active {
    opacity: 0.4;
    transform: scale(1);
}

.logo-footer-text p {
    font-size: 11px;
    opacity: 0.5;
    letter-spacing: 3px;
    font-weight: bold;
}

/* 📥 Right Panel Inputs Form Layout */
.input-container {
    width: 50%;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: white;
}

.input-container h2 {
    color: var(--dark-text);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.input-container .subtitle {
    color: #718096;
    font-size: 14px;
    margin-bottom: 35px;
}

/* Interactive Input Float Blocks */
.input-group {
    position: relative;
    margin-bottom: 25px;
}

.input-group input {
    width: 100%;
    padding: 16px;
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    font-size: 15px;
    color: var(--dark-text);
    outline: none;
    transition: all 0.3s ease;
    background: transparent;
}

.input-group input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(64, 92, 94, 0.15);
}

.input-group label {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #a0aec0;
    font-size: 15px;
    transition: all 0.3s ease;
    pointer-events: none;
    background: white;
    padding: 0 4px;
}

/* Floating label trigger matrix states */
.input-group input:focus ~ label,
.input-group input:valid ~ label {
    top: 0;
    font-size: 12px;
    color: var(--accent);
    font-weight: 600;
}

/* Password Box Adjustments */
.password-wrapper {
    position: relative;
}

.password-wrapper i {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #718096;
    font-size: 20px;
    transition: color 0.3s;
}

.password-wrapper i:hover {
    color: var(--accent);
}

/* Action Button Layout */
.btn-submit {
    width: 100%;
    background: var(--primary);
    color: white;
    padding: 16px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(45, 62, 64, 0.15);
}

.btn-submit:hover {
    background: var(--accent);
    transform: translateY(-1px);
    box-shadow: 0 7px 14px rgba(45, 62, 64, 0.25);
}

/* Message Alerts Framework */
#message-container {
    background: #fff5f5;
    border-left: 4px solid #e53e3e;
    color: #c53030;
    padding: 14px;
    border-radius: 6px;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.closebtn {
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    opacity: 0.6;
}
.closebtn:hover { opacity: 1; }

/* 📱 Responsive Mobile Split-Screen Breakout */
@media (max-width: 900px) {
    .login-container {
        flex-direction: column;
        width: 100%;
        max-width: 450px;
        min-height: auto;
    }
    .company-logo {
        width: 100%;
        padding: 40px 30px;
        min-height: 220px;
    }
    .input-container {
        width: 100%;
        padding: 40px 30px;
    }
    .back-home {
        top: 20px;
        left: 20px;
    }
    .name h1 { font-size: 28px; }
}
