/* STK Brand Colors */
:root {
    --stk-primary: #2b7a8b;      /* Teal from logo */
    --stk-secondary: #6b9f45;    /* Green from logo */
    --stk-accent: #76d933;       /* Bright green from logo */
    --stk-gray: #6d6e71;         /* Gray from logo */
    --stk-light-gray: #f8f9fa;
    --stk-dark: #2c3e50;
    --stk-white: #ffffff;
    --stk-shadow: rgba(0, 0, 0, 0.1);
    --stk-hover: rgba(43, 122, 139, 0.1);
}

body.login {
    font-family: "Roboto", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif !important;
    background: linear-gradient(135deg, var(--stk-primary) 0%, var(--stk-secondary) 100%) !important;
    min-height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.login_wrapper {
    width: 100%;
    max-width: 450px;
    padding: 20px;
}

.login_logo {
    text-align: center;
    margin-bottom: 25px;
}

.login_logo img {
    max-width: 280px;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.login_content {
    background: var(--stk-white) !important;
    border-radius: 16px !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
    overflow: hidden !important;
}

.login-card {
    padding: 40px 35px;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-title {
    color: var(--stk-dark);
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.5px;
}

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

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

.form-label {
    display: block;
    margin-bottom: 8px;
    color: var(--stk-dark);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.form-control {
    width: 100%;
    padding: 16px 18px;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 400;
    color: var(--stk-dark);
    background-color: var(--stk-white);
    transition: all 0.3s ease;
    box-sizing: border-box;
    line-height: 1.5;
}

.form-control:focus {
    outline: none;
    border-color: var(--stk-primary);
    box-shadow: 0 0 0 3px var(--stk-hover);
    background-color: var(--stk-white);
}

.form-control::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

.btn-login {
    width: 100% !important;
    padding: 16px 24px !important;
    background: linear-gradient(135deg, var(--stk-primary) 0%, var(--stk-secondary) 100%) !important;
    border: none !important;
    border-radius: 12px !important;
    color: var(--stk-white) !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    letter-spacing: 0.5px !important;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(43, 122, 139, 0.3);
    background: linear-gradient(135deg, #247a8a 0%, #5a8f3f 100%);
}

.btn-login:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(43, 122, 139, 0.2);
}

.btn-login i {
    font-size: 16px;
}

.login-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #e1e5e9;
}

.company-name {
    color: var(--stk-gray);
    font-size: 14px;
    margin: 0;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.flash-messages {
    margin-bottom: 20px;
    text-align: center;
}

.flash-messages .message {
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 500;
    padding: 0;
    background: none;
    border: none;
}

.flash-messages .message.error {
    color: #dc2626;
}

.flash-messages .message.success {
    color: #059669;
}

.flash-messages .message.info {
    color: #2563eb;
}

/* Responsive Design */
@media (max-width: 768px) {
    body.login {
        min-height: 100vh !important;
        padding: 10px 0 !important;
    }
    
    .login_wrapper {
        padding: 10px;
        max-width: 400px;
    }
    
    .login_logo {
        margin-bottom: 15px;
    }
    
    .login_logo img {
        max-width: 220px;
    }
    
    .login-card {
        padding: 25px 20px;
    }
    
    .login-title {
        font-size: 24px;
    }
    
    .login-header {
        margin-bottom: 20px;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .login_wrapper {
        padding: 5px;
        max-width: 350px;
    }
    
    .login_logo {
        margin-bottom: 10px;
    }
    
    .login_logo img {
        max-width: 200px;
    }
    
    .login-card {
        padding: 20px 15px;
    }
    
    .login-title {
        font-size: 22px;
    }
}

@media (min-width: 769px) and (max-width: 1000px) {
    #desktop-bg {
        display: none;
    }
    
    @media (orientation: portrait) {
        .login-container {
            padding-top: 100px;
        }
    }
}

@media (min-width: 1001px) {
    #tablet-bg {
        display: none;
    }
}

/* Animation for login card */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login_content {
    animation: fadeInUp 0.6s ease-out;
}
