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

body {
    font-family: 'Roboto', Arial, sans-serif;
    min-height: 100vh;
    background: linear-gradient(135deg, #8B1538 0%, #2D1B69 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 20px 10px;
}

/* Background decorative elements */
.bg-decoration {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.triangle {
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
}

.triangle-1 {
    top: 10%;
    left: 5%;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-bottom: 26px solid rgba(255, 255, 255, 0.1);
    transform: rotate(30deg);
}

.triangle-2 {
    top: 20%;
    right: 8%;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-bottom: 21px solid rgba(255, 255, 255, 0.08);
    transform: rotate(145deg);
}

.triangle-3 {
    bottom: 15%;
    left: 8%;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 17px solid rgba(255, 255, 255, 0.06);
    transform: rotate(210deg);
}

.triangle-4 {
    bottom: 25%;
    right: 15%;
    border-left: 18px solid transparent;
    border-right: 18px solid transparent;
    border-bottom: 31px solid rgba(255, 255, 255, 0.05);
    transform: rotate(75deg);
}

.dot {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
}

.dot-1 { top: 30%; left: 12%; }
.dot-2 { top: 60%; right: 20%; }
.dot-3 { bottom: 40%; left: 25%; }
.dot-4 { top: 80%; right: 10%; }

/* Main login container */
.login-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 950px;
    width: 100%;
    display: flex;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

/* Left section */
.warehouse-section {
    flex: 1;
    background: #f8f9fa;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
}

.warehouse-img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* Right section */
.login-section {
    flex: 1;
    padding: 40px 30px;
    background: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo-header {
    text-align: center;
    margin-bottom: 20px;
}

.logo-text {
    font-size: 22px;
    font-weight: bold;
    color: #1a1f4d;
    line-height: 1.2;
    margin-bottom: 8px;
}

.system-title {
    font-size: 14px;
    color: #666;
    font-weight: normal;
}

/* Form styling */
.login-form {
    margin-top: 15px;
}

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

.form-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.form-input {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    background-color: #fff;
}

.form-input:focus {
    outline: none;
    border-color: #1a1f4d;
}

.captcha-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.captcha-display {
    background: #f5f5f5;
    border: 2px solid #ddd;
    padding: 10px 14px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 18px;
    letter-spacing: 3px;
    color: #333;
    min-width: 110px;
    text-align: center;
}

.captcha-input {
    flex: 1;
}

.refresh-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 12px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.3s ease;
    white-space: nowrap;
}

.refresh-btn:hover {
    background: #5a6268;
}

.forgot-password {
    text-align: right;
    margin: 12px 0;
}

.forgot-password a {
    color: #1a1f4d;
    text-decoration: none;
    font-size: 13px;
}

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

.login-btn {
    width: 100%;
    background: #1a1f4d;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-bottom: 20px;
}

.login-btn:hover {
    background: #151a42;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 10px 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 13px;
    display: none;
}

/* Footer */
.footer {
    text-align: center;
    font-size: 11px;
    color: #666;
    line-height: 1.4;
}

.footer .org-name {
    font-weight: 600;
    margin-bottom: 3px;
}

/* Responsive design for mobile screens */
@media (max-width: 768px) {
    body {
        align-items: flex-start;
        padding: 15px 10px;
    }

    .login-container {
        flex-direction: column;
        max-width: 100%;
        border-radius: 10px;
    }

    .warehouse-section {
        min-height: auto;
        padding: 20px 15px;
    }

    .warehouse-img {
        max-height: 160px;
    }

    .login-section {
        padding: 25px 20px;
    }

    .logo-text {
        font-size: 18px;
    }

    .system-title {
        font-size: 13px;
    }

    .captcha-group {
        flex-wrap: wrap;
    }

    .captcha-display {
        width: 100%;
    }

    .refresh-btn {
        width: auto;
    }
}
