* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #ff6a00;
    --secondary-color: #008a00;
    --color: #37b6ff;
    --admin-color: #ffc107;
    --employee-color: #37b6ff;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: hidden;
}

.form-container {
    width: 80vw;
    max-width: 1200px;
    height: 80vh;
    min-height: 500px;
    display: flex;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    background: white;
    position: relative;
}

.form-content-container {
    width: 50%;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6%;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.form-content-container .form {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    transition: all 0.5s ease;
    padding: 0px 30px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.152);
}

.form-image-container {
    width: 60%;
}

.form-image-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.form-image-container:hover video {
    transform: scale(1.05);
}

.form-head {
    padding: 20px 0 30px;
    text-align: center;
}

.logo {
    margin-bottom: 15px;
    animation: gentleSpin 8s infinite linear;
}

@keyframes gentleSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.title {
    font-size: 2rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.subtitle {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0;
}

.input-group {
    position: relative;
    margin: 25px 0;
}

.form-control {
    background-color: transparent;
    border: none;
    border-bottom: 2px solid #ddd;
    outline: none;
    box-shadow: none;
    border-radius: 0;
    padding: 12px 40px 12px 0;
    font-size: 16px;
    transition: all 0.3s ease;
    width: 100%;
}

.form-control:focus {
    box-shadow: none;
    background-color: transparent;
    border-bottom-color: var(--color);
}

body.admin-login-page .form-control:focus {
    border-bottom-color: var(--admin-color);
}

body.employee-login-page .form-control:focus {
    border-bottom-color: var(--employee-color);
}

#togglePassword, #person-icon {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    color: #666;
    font-size: 18px;
}

#togglePassword {
    cursor: pointer;
    transition: color 0.3s ease;
}

#togglePassword:hover {
    color: var(--color);
}

.login-actions {
    display: flex;
    flex-direction: column;
    padding: 20px 0 10px;
}

.sign {
    color: white;
    background-color: var(--color);
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.sign:hover {
    background-color: transparent;
    border: 1px solid var(--color);
}

body.employee-login-page .sign {
    background: linear-gradient(135deg, var(--employee-color), #2a9df4);
    box-shadow: 0 4px 15px rgba(55, 182, 255, 0.3);
}

body.employee-login-page .sign:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(55, 182, 255, 0.4);
    background: linear-gradient(135deg, #2a9df4, var(--employee-color));
}

body.admin-login-page .sign {
    background: linear-gradient(135deg, var(--admin-color), #e0a800);
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

body.admin-login-page .sign:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.4);
    background: linear-gradient(135deg, #e0a800, var(--admin-color));
}

.switch-login {
    border: 2px solid #6c757d;
    color: #6c757d;
    padding: 10px 24px;
    border-radius: 25px;
    font-size: 14px;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: end;
    background: transparent;
    cursor: pointer;
}

.switch-login:hover {
    background-color: #6c757d;
    color: white;
    transform: translateY(-2px);
    text-decoration: none;
}

.slide-out-left {
    transform: translateX(-100%);
    opacity: 0;
}

.slide-out-right {
    transform: translateX(100%);
    opacity: 0;
}

.slide-out-top {
    transform: translateY(-100%);
    opacity: 0;
}

.slide-out-bottom {
    transform: translateY(100%);
    opacity: 0;
}

.messages {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    text-align: center;
    z-index: 1000;
}

.alert {
    border-radius: 10px;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    animation: slideInUp 0.5s ease;
}

@keyframes slideInUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.spinner-border {
    width: 1rem;
    height: 1rem;
}

@media (max-width: 768px) {
    .form-container {
        flex-direction: column;
        width: 95vw;
        height: auto;
        min-height: auto;
    }
    
    .form-image-container,
    .form-content-container {
        width: 100%;
    }
    
    .form-image-container {
        height: 200px;
    }
    
    .form-content-container {
        padding: 10%;
    }
    
    .title {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .form-content-container .form {
        padding: 30px 20px;
    }
    
    .login-actions {
        gap: 10px;
    }
    
    .sign, .switch-login {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .title {
        font-size: 1.4rem;
    }
}

.btn:focus {
    box-shadow: none !important;
}

.form-control:focus {
    box-shadow: none !important;
}

.slide-left {
    animation: slideLeft 0.6s ease forwards;
}

.slide-right {
    animation: slideRight 0.6s ease forwards;
}

@keyframes slideLeft {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(-100%);
        opacity: 0;
    }
}

@keyframes slideRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}
