:root {
    --primary-color: #F4B63F;
    --surface-dark: #1E1E1E;
    --text-light: #FFFFFF;
    --text-secondary: #9E9E9E;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background-color: #000000;
    overflow-x: hidden;
}

.login-container {
    display: flex;
    width: 100%;
    min-height: 100vh;
    position: relative;
}

.image-section {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.image-section img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.quote-container {
    position: absolute;
    bottom: 60px;
    left: 40px;
    color: var(--text-light);
    max-width: 80%;
    padding: 20px;
    border-radius: 12px;
    backdrop-filter: blur(5px);
}

.quote-text,
.quote-author {
    transition: opacity 0.5s ease-in-out;
}

.quote-text {
    font-size: 24px;
    line-height: 1.4;
    margin-bottom: 20px;
    font-style: italic;
}

.quote-author {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.login-section {
    flex: 1;
    background-color: #353c48;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    position: relative;
}

.logo {
    width: 200px;
    margin-bottom: 2rem;
}

.login-box {
    width: 100%;
    max-width: 400px;
}

.login-title {
    color: white;
    font-size: 28px;
    text-align: center;
    margin-bottom: 1rem;
}

.login-subtitle {
    color: #95a0b1;
    font-size: 16px;
    text-align: center;
    margin-bottom: 2rem;
}

.employee-selector {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    cursor: pointer;
    border: 1px solid #50596a;
    transition: all 0.3s;
}

.employee-selector:hover {
    border-color: #2389ae;
    background-color: rgba(255, 255, 255, 0.15);
}

.employee-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 15px;
}

.employee-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.employee-name {
    color: white;
    font-size: 16px;
    margin-bottom: 4px;
}

.employee-shift {
    color: #95a0b1;
    font-size: 14px;
}

.pin-section {
    text-align: center;
}

.pin-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    position: relative;
}

.pin-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s;
}

.pin-dot.filled {
    background-color: var(--text-light);
}

.pin-dots.shake {
    animation: shake 0.5s cubic-bezier(.36, .07, .19, .97) both;
    transform-origin: center;
    will-change: transform;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-15px);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translateX(15px);
    }
}

.pin-dots.shake .pin-dot {
    background-color: rgba(255, 0, 0, 0.3);
    transition: background-color 0.3s;
}

.pin-dots.shake .pin-dot.filled {
    background-color: rgba(255, 0, 0, 0.6);
}

.pin-pad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    max-width: 300px;
    margin: 0 auto;
}

.pin-button {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid #50596a;
    color: white;
    font-size: 24px;
    padding: 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.pin-button:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: #2389ae;
}

.start-shift-btn {
    width: 100%;
    padding: 15px;
    background-color: #2389ae;
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 16px;
    font-weight: bold;
    margin-top: 100px;
    cursor: pointer;
    transition: all 0.3s;
}

.start-shift-btn:hover {
    background-color: #1e7a9a;
}

.start-shift-btn:disabled {
    background-color: #50596a;
    cursor: not-allowed;
}

.employee-selector select {
    width: 100%;
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    padding: 8px 0;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.employee-selector select:focus {
    outline: none;
}

.employee-selector select option {
    background-color: #353c48;
    color: white;
    padding: 12px;
}

/* Toast Styles */
.toast-container {
    z-index: 1100;
}

.toast {
    --bs-toast-max-width: 350px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: slideInRight 0.3s ease-out;
}

.toast-body {
    display: flex;
    align-items: center;
    padding: 1rem;
    font-size: 0.95rem;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Mobile Quote Container */
.quote-container-mobile {
    display: none;
    color: white;
    max-width: 100%;
    padding: 16px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.2);
    margin-bottom: 16px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
    }

    /* Hide the image section on mobile to keep content static */
    .image-section {
        display: none;
    }

    .login-section {
        height: auto;
        min-height: 100vh;
        padding: 20px;
    }

    /* Show quote inside the login section on mobile */
    .quote-container-mobile {
        display: block;
    }

    .logo {
        width: 150px;
        margin-bottom: 1.5rem;
    }

    .login-title {
        font-size: 24px;
    }

    .login-subtitle {
        font-size: 14px;
    }
}

/* Specific fix for 13" MacBook (1280x800, 1440x900) - Normal windowed mode */
@media (min-width: 1024px) and (max-width: 1440px) and (min-height: 700px) and (max-height: 900px) {
    .login-container {
        height: 100vh;
        overflow: hidden;
    }

    .image-section {
        height: 100vh;
    }

    .login-section {
        padding: 25px 35px;
        justify-content: center;
        overflow-y: auto;
        height: 100vh;
    }

    .logo {
        width: 150px;
        margin-bottom: 1.2rem;
    }

    .login-title {
        font-size: 23px;
        margin-bottom: 0.6rem;
    }

    .login-subtitle {
        font-size: 14px;
        margin-bottom: 1.3rem;
    }

    .employee-selector {
        padding: 12px 15px;
        margin-bottom: 1.3rem;
    }

    .employee-avatar {
        width: 36px;
        height: 36px;
        margin-right: 12px;
    }

    .employee-name {
        font-size: 15px;
        margin-bottom: 3px;
    }

    .employee-shift {
        font-size: 13px;
    }

    .pin-dots {
        margin-bottom: 20px;
        gap: 8px;
    }

    .pin-dot {
        width: 10px;
        height: 10px;
    }

    .pin-pad {
        max-width: 280px;
        gap: 11px;
    }

    .pin-button {
        font-size: 21px;
        padding: 11px;
    }

    .start-shift-btn {
        padding: 12px;
        margin-top: 20px;
        font-size: 15px;
    }

    .quote-text {
        font-size: 21px;
        margin-bottom: 16px;
    }

    .quote-author {
        font-size: 13px;
    }

    .quote-container {
        bottom: 35px;
        left: 35px;
        padding: 16px;
    }
}

/* Fullscreen mode for 13" MacBook - more space available */
@media (min-width: 1024px) and (max-width: 1440px) and (min-height: 901px) {
    .login-container {
        height: 100vh;
        overflow: hidden;
    }

    .image-section {
        height: 100vh;
    }

    .login-section {
        padding: 35px 40px;
        justify-content: center;
        height: 100vh;
    }

    .logo {
        width: 170px;
        margin-bottom: 1.5rem;
    }

    .login-title {
        font-size: 26px;
        margin-bottom: 0.8rem;
    }

    .login-subtitle {
        font-size: 15px;
        margin-bottom: 1.8rem;
    }

    .employee-selector {
        padding: 14px 16px;
        margin-bottom: 1.8rem;
    }

    .employee-avatar {
        width: 40px;
        height: 40px;
    }

    .employee-name {
        font-size: 16px;
    }

    .employee-shift {
        font-size: 14px;
    }

    .pin-dots {
        margin-bottom: 25px;
        gap: 9px;
    }

    .pin-dot {
        width: 11px;
        height: 11px;
    }

    .pin-pad {
        max-width: 300px;
        gap: 14px;
    }

    .pin-button {
        font-size: 24px;
        padding: 14px;
    }

    .start-shift-btn {
        padding: 14px;
        margin-top: 25px;
        font-size: 16px;
    }

    .quote-text {
        font-size: 24px;
        margin-bottom: 18px;
    }

    .quote-author {
        font-size: 14px;
    }

    .quote-container {
        bottom: 45px;
        left: 40px;
        padding: 18px;
    }
}

/* Extra safety for very short screens */
@media (min-width: 1024px) and (max-height: 699px) {
    body {
        overflow: hidden;
    }

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

    .logo {
        width: 120px;
        margin-bottom: 0.8rem;
    }

    .login-title {
        font-size: 20px;
        margin-bottom: 0.4rem;
    }

    .login-subtitle {
        font-size: 13px;
        margin-bottom: 1rem;
    }

    .employee-selector {
        padding: 8px 12px;
        margin-bottom: 1rem;
    }

    .pin-dots {
        margin-bottom: 15px;
    }

    .pin-pad {
        gap: 8px;
        max-width: 250px;
    }

    .pin-button {
        font-size: 18px;
        padding: 8px;
    }

    .start-shift-btn {
        padding: 10px;
        margin-top: 15px;
        font-size: 14px;
    }
}

/* Large Desktop Screens (1920px and above) */
@media (min-width: 1920px) {
    .login-section {
        padding: 60px;
    }

    .login-box {
        max-width: 500px;
    }

    .logo {
        width: 250px;
        margin-bottom: 3rem;
    }

    .login-title {
        font-size: 32px;
    }

    .login-subtitle {
        font-size: 18px;
    }

    .quote-text {
        font-size: 28px;
        line-height: 1.5;
    }

    .quote-author {
        font-size: 16px;
    }

    .employee-selector {
        padding: 20px;
    }

    .employee-avatar {
        width: 50px;
        height: 50px;
    }

    .employee-name {
        font-size: 18px;
    }

    .pin-pad {
        max-width: 350px;
        gap: 20px;
    }

    .pin-button {
        font-size: 28px;
        padding: 20px;
    }
}

/* Fullscreen fix for 13" MacBook and similar screens */
@media (min-width: 1024px) and (max-height: 900px) {
    body {
        overflow: hidden;
    }

    .login-container {
        height: 100vh;
        max-height: 100vh;
        overflow: hidden;
    }

    /* Left side with quote and food pattern */
    .login-left-section {
        height: 100vh;
        overflow: hidden;
    }

    /* Right side with login form */
    .login-right-section {
        height: 100vh;
        max-height: 100vh;
        overflow-y: auto;
        padding: 20px 40px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    /* Logo */
    .chef-logo {
        width: 120px;
        height: 120px;
        margin-bottom: 1rem;
    }

    /* Welcome text */
    .welcome-title {
        font-size: 26px;
        margin-bottom: 1.5rem;
    }

    /* User selector card */
    .user-selector {
        padding: 12px 16px;
        margin-bottom: 1.5rem;
    }

    .user-avatar {
        width: 45px;
        height: 45px;
    }

    .user-name {
        font-size: 16px;
    }

    .user-role {
        font-size: 13px;
    }

    /* PIN dots */
    .pin-dots {
        margin-bottom: 20px;
        gap: 8px;
    }

    .pin-dot {
        width: 10px;
        height: 10px;
    }

    /* PIN pad - make it more compact */
    .pin-pad {
        max-width: 320px;
        gap: 10px;
        margin: 0 auto 1rem auto;
    }

    .pin-button {
        padding: 14px;
        font-size: 22px;
        min-height: 56px;
    }

    /* Quote on left side */
    .quote-text {
        font-size: 20px;
        line-height: 1.4;
        margin-bottom: 15px;
    }

    .quote-author {
        font-size: 13px;
    }
}

/* Extra compact for very short screens (fullscreen with browser chrome) */
@media (min-width: 1024px) and (max-height: 800px) {
    .login-right-section {
        padding: 15px 30px;
    }

    .chef-logo {
        width: 100px;
        height: 100px;
        margin-bottom: 0.8rem;
    }

    .welcome-title {
        font-size: 24px;
        margin-bottom: 1.2rem;
    }

    .user-selector {
        padding: 10px 14px;
        margin-bottom: 1.2rem;
    }

    .user-avatar {
        width: 40px;
        height: 40px;
    }

    .pin-dots {
        margin-bottom: 15px;
        gap: 6px;
    }

    .pin-dot {
        width: 9px;
        height: 9px;
    }

    .pin-pad {
        max-width: 300px;
        gap: 8px;
        margin-bottom: 0.8rem;
    }

    .pin-button {
        padding: 12px;
        font-size: 20px;
        min-height: 52px;
    }

    .quote-text {
        font-size: 18px;
        margin-bottom: 12px;
    }
}

/* For extremely short screens */
@media (min-width: 1024px) and (max-height: 720px) {
    .chef-logo {
        width: 90px;
        height: 90px;
        margin-bottom: 0.6rem;
    }

    .welcome-title {
        font-size: 22px;
        margin-bottom: 1rem;
    }

    .user-selector {
        padding: 8px 12px;
        margin-bottom: 1rem;
    }

    .pin-dots {
        margin-bottom: 12px;
    }

    .pin-pad {
        gap: 6px;
        max-width: 280px;
    }

    .pin-button {
        padding: 10px;
        font-size: 18px;
        min-height: 48px;
    }
}

/* Normal/windowed mode - more spacious */
@media (min-width: 1024px) and (min-height: 901px) {
    .login-container {
        height: 100vh;
        overflow: hidden;
    }

    .login-right-section {
        padding: 40px 50px;
    }

    .chef-logo {
        width: 140px;
        height: 140px;
        margin-bottom: 1.5rem;
    }

    .welcome-title {
        font-size: 28px;
        margin-bottom: 2rem;
    }

    .user-selector {
        padding: 16px 20px;
        margin-bottom: 2rem;
    }

    .pin-dots {
        margin-bottom: 25px;
        gap: 10px;
    }

    .pin-dot {
        width: 12px;
        height: 12px;
    }

    .pin-pad {
        max-width: 350px;
        gap: 12px;
    }

    .pin-button {
        padding: 16px;
        font-size: 24px;
        min-height: 60px;
    }
}