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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, rgba(69, 144, 164, 0.1) 0%, rgba(116, 73, 46, 0.1) 100%),
                url('https://images.unsplash.com/photo-1497435334941-8c899ee9e8e9?w=1920&auto=format&fit=crop') center/cover fixed;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.85);
    z-index: -1;
}

/* Header */
.header {
    padding: 24px 48px;
    background: transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.logo {
    font-size: 48px;
    animation: fadeIn 0.6s ease-out 0.1s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.header-right {
    display: flex;
    align-items: center;
    animation: fadeIn 0.6s ease-out 0.1s both;
}

.company-selector {
    min-width: 200px;
    padding: 12px 40px 12px 20px;
    border: 2px solid rgba(69, 144, 164, 0.3);
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    color: #1a1a2e;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    background-image: url('data:image/svg+xml,<svg width="12" height="8" viewBox="0 0 12 8" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1 1L6 6L11 1" stroke="rgb(69, 144, 164)" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>');
    background-repeat: no-repeat;
    background-position: right 16px center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.company-selector:hover {
    border-color: rgb(69, 144, 164);
    background: white;
    box-shadow: 0 6px 16px rgba(69, 144, 164, 0.15);
}

.company-selector:focus {
    outline: none;
    border-color: rgb(69, 144, 164);
    box-shadow: 0 0 0 4px rgba(69, 144, 164, 0.12);
}

/* Main Container */
.main-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    padding-top: 15px;
}

.login-wrapper {
    display: flex;
    max-width: 1100px;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    margin: auto;
    animation: fadeInScale 0.5s ease-out 0.2s both;
    will-change: transform, opacity;
}

@keyframes fadeInScale {
    from {
        transform: scale(0.95);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Left Side - Hero Image */
.hero-section {
    flex: 1;
    background: linear-gradient(135deg, rgb(69, 144, 164) 0%, rgb(39, 53, 47) 100%);
    padding: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(69, 144, 164, 0.85) 0%, rgba(39, 53, 47, 0.85) 100%);
    z-index: 0;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(20px, 20px); }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
}

.hero-icon {
    margin: 0 auto 32px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    animation: fadeIn 0.5s ease-out 0.4s both;
    transition: transform 0.3s ease;
    will-change: transform;
}

.hero-icon:hover {
    transform: scale(1.05);
}

.hero-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.hero-title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.3;
    animation: fadeIn 0.5s ease-out 0.5s both;
}

.hero-subtitle {
    font-size: 18px;
    opacity: 0.9;
    font-weight: 400;
    line-height: 1.6;
    animation: fadeIn 0.5s ease-out 0.6s both;
}

/* Right Side - Login Form */
.login-section {
    flex: 1;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-header {
    margin-bottom: 40px;
    animation: fadeIn 0.5s ease-out 0.4s both;
}

.login-title {
    font-size: 21px;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.login-subtitle {
    font-size: 14px;
    color: #64748b;
    margin-top: 8px;
}

/* Form */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    animation: fadeIn 0.4s ease-out both;
}

.form-group:nth-child(1) {
    animation-delay: 0.5s;
}

.form-group:nth-child(2) {
    animation-delay: 0.6s;
}

.form-label {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-input {
    padding: 14px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    color: #1a1a2e;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    background: #f8fafc;
    width: 100%;
}

.form-input:hover {
    border-color: #cbd5e1;
    background: white;
}

.form-input:focus {
    outline: none;
    border-color: rgb(69, 144, 164);
    background: white;
    box-shadow: 0 0 0 4px rgba(69, 144, 164, 0.1);
}

.form-input::placeholder {
    color: #94a3b8;
}

.password-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #64748b;
    font-size: 18px;
    user-select: none;
    transition: color 0.2s ease;
}

.password-toggle:hover {
    color: rgb(69, 144, 164);
}

.form-row {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 8px;
    animation: fadeIn 0.4s ease-out 0.7s both;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox-wrapper input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: rgb(69, 144, 164);
}

.checkbox-label {
    font-size: 14px;
    color: #64748b;
    cursor: pointer;
}

.forgot-link {
    font-size: 14px;
    color: rgb(69, 144, 164);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.forgot-link:hover {
    color: rgb(59, 134, 154);
    text-decoration: underline;
}

.privacy-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 8px;
}

.privacy-wrapper input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: rgb(69, 144, 164);
}

.privacy-label {
    font-size: 14px;
    color: #64748b;
    line-height: 1.5;
}

.privacy-label a {
    color: rgb(69, 144, 164);
    text-decoration: none;
    font-weight: 600;
}

.privacy-label a:hover {
    text-decoration: underline;
}

.login-button {
    padding: 16px 32px;
    background: linear-gradient(135deg, rgb(69, 144, 164) 0%, rgb(116, 73, 46) 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-top: 12px;
    animation: fadeIn 0.4s ease-out 0.8s both;
    position: relative;
    will-change: transform;
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(69, 144, 164, 0.3);
}

.login-button:active {
    transform: translateY(0);
}

/* Footer */
.footer {
    padding: 24px 48px;
    background: transparent;
    text-align: center;
    animation: fadeIn 0.6s ease-out 0.2s both;
}

.copyright {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

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

    .hero-section {
        padding: 40px;
        min-height: 300px;
    }

    .login-section {
        padding: 40px;
    }

    .header, .footer {
        padding: 20px 24px;
    }

    .footer-links {
        flex-direction: column;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 24px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .login-section {
        padding: 32px 24px;
    }

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