/* ACTION: CREATE staff login specific styles without notification CSS */

:root {
    --core-blue: #0158ad;
    --core-gold: #ffc107;
    --core-blue-light: #4a8bdb;
    --core-blue-dark: #013f7a;
    --core-gold-light: #ffd43b;
    --core-gold-dark: #e0a800;
    --gradient-primary: linear-gradient(135deg, var(--core-blue) 0%, var(--core-blue-light) 100%);
    --gradient-accent: linear-gradient(135deg, var(--core-gold) 0%, var(--core-gold-light) 100%);
}

* {
    box-sizing: border-box;
}

body.staff-login-page {
    background: var(--gradient-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

body.staff-login-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 193, 7, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 193, 7, 0.08) 0%, transparent 50%);
    animation: morphing 8s ease-in-out infinite;
    z-index: 1;
}

@keyframes morphing {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.05) rotate(1deg); }
}

#appCapsule {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    z-index: 10;
}

.core-login-container {
    display: grid;
    grid-template-columns: 420px 400px;
    max-width: 820px;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(25px);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    overflow: hidden;
    min-height: 480px;
    transition: all 0.4s ease;
}

.core-login-container:hover {
    transform: translateY(-2px); 
    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.18); 
}

.core-brand-panel {
    background: var(--gradient-primary);
    padding: 40px 35px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.core-brand-panel::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 193, 7, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.core-logo {
    width: 80px;
    height: 80px;
    background: var(--gradient-accent);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.4);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.core-logo::before {
    content: 'CORE';
    font-size: 18px;
    font-weight: 900;
    color: var(--core-blue);
    letter-spacing: 2px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.core-logo::after {
    content: '';
    position: absolute;
    top: 6px;
    right: 6px;
    width: 14px;
    height: 14px;
    background: var(--core-blue);
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.core-brand-content {
    position: relative;
    z-index: 2;
    margin-bottom: 25px;
}

.core-brand-content h1 {
    font-size: 28px;
    font-weight: 900;
    color: white;
    margin-bottom: 8px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    letter-spacing: -0.5px;
}

.core-brand-content p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
    margin-bottom: 0;
    text-shadow: 0 1px 4px rgba(0,0,0,0.2);
    font-weight: 400;
}

.core-values {
    position: relative;
    z-index: 2;
    width: 100%;
}

.value-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.95);
    font-size: 13px;
    font-weight: 500;
}

.value-icon {
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
}

.core-form-panel {
    padding: 40px 35px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(255, 255, 255, 0.02);
}

.form-header {
    text-align: center;
    margin-bottom: 30px;
}

.form-header h2 {
    font-size: 24px;
    font-weight: 800;
    color: var(--core-blue-dark);
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}

.form-header p {
    color: #64748b;
    font-size: 14px;
    margin: 0;
    font-weight: 400;
}

.core-form {
    width: 100%;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-label {
    font-weight: 600;
    color: var(--core-blue-dark);
    margin-bottom: 8px;
    font-size: 14px;
    letter-spacing: 0.3px;
    display: block;
}

.input-wrapper {
    position: relative;
}

.form-control {
    width: 100%;
    height: 48px;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    padding: 0 20px 0 48px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #ffffff;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    font-family: inherit;
    font-weight: 500;
}

.form-control:focus {
    border-color: var(--core-gold);
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.08);
    outline: none;
    transform: translateY(-1px);
}

.form-control::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.input-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 16px;
    transition: color 0.3s ease;
    z-index: 2;
}

.form-control:focus ~ .input-icon {
    color: #e0a800;
}

.btn-core-login {
    width: 100%;
    height: 48px;
    background: var(--gradient-accent);
    border: none;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    color: var(--core-blue-dark);
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.3);
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    font-family: inherit;
    margin-top: 8px;
}

.btn-core-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s;
}

.btn-core-login:hover::before {
    left: 100%;
}

.btn-core-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 193, 7, 0.25);
    background: linear-gradient(135deg, var(--core-gold) 0%, #f0b90b 100%);
}

.btn-core-login:active {
    transform: translateY(0);
}

.btn-core-login:disabled {
    cursor: not-allowed;
    opacity: 0.7;
    transform: none !important;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .core-login-container {
        grid-template-columns: 1fr;
        max-width: 100%;
        margin: 0 10px;
        border-radius: 20px;
        min-height: auto;
    }
    
    .core-brand-panel {
        padding: 30px 25px;
        order: 2;
    }
    
    .core-form-panel {
        padding: 30px 25px;
        order: 1;
    }
    
    .core-logo {
        width: 70px;
        height: 70px;
        margin-bottom: 16px;
        border-radius: 16px;
    }
    
    .core-logo::before {
        font-size: 16px;
        letter-spacing: 1.5px;
    }
    
    .core-logo::after {
        width: 12px;
        height: 12px;
        top: 5px;
        right: 5px;
    }
    
    .core-brand-content h1 {
        font-size: 24px;
        margin-bottom: 6px;
    }
    
    .core-brand-content p {
        font-size: 13px;
        margin-bottom: 20px;
    }
    
    .form-header h2 {
        font-size: 20px;
    }
    
    .form-header p {
        font-size: 13px;
    }
    
    .form-control {
        height: 44px;
        padding: 0 18px 0 44px;
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    .input-icon {
        left: 16px;
        font-size: 15px;
    }
    
    .btn-core-login {
        height: 44px;
        font-size: 14px;
    }
    
    .value-item {
        font-size: 12px;
        margin-bottom: 10px;
    }
    
    .value-icon {
        width: 24px;
        height: 24px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    #appCapsule {
        padding: 15px;
    }
    
    .core-brand-panel {
        padding: 25px 20px;
    }
    
    .core-form-panel {
        padding: 25px 20px;
    }
    
    .core-values {
        display: none; /* Hide on very small screens */
    }
}

/* Focus States */
.btn-core-login:focus,
.form-control:focus {
    outline: none;
}

/* Hide login-message */
#login-message {
    display: none;
}