:root {
    --navy-dark: #0A0F1C;
    --navy-card: #151A2C;
    --navy-input: #0B0E1A;
    --yellow-brand: #F6CA45;
    --text-white: #FFFFFF;
    --text-gray: #A0AEC0;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--navy-dark);
    color: var(--text-white);
    height: 100vh;
    overflow: hidden;
}

.split-container {
    display: flex;
    width: 100vw;
    height: 100vh;
}

/* Left Side */
.split-left {
    flex: 1;
    background-color: var(--navy-dark);
    position: relative;
    padding: 40px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.left-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    z-index: 10;
}

.logo-icon {
    width: 48px;
    height: 48px;
    background-color: var(--yellow-brand);
    border-radius: 6px;
    padding: 8px;
}

.left-header-text {
    display: flex;
    flex-direction: column;
}

.suptitle {
    color: var(--text-gray);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.left-header h1 {
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: 18px;
    line-height: 1.2;
    margin-top: 2px;
}

.left-header .subtitle {
    font-weight: 400;
    font-size: 16px;
    color: var(--text-white);
}

.machine-graphic {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin-top: 20px;
}

.machine-graphic img {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
}

/* Right Side */
.split-right {
    flex: 1;
    background-color: var(--yellow-brand);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: var(--navy-dark);
}

.right-header {
    text-align: center;
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.main-logo {
    margin-bottom: 15px;
}

.right-header h2 {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 38px;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.right-header p {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Login Card */
.login-card {
    background-color: var(--navy-card);
    width: 100%;
    max-width: 450px;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
    color: var(--text-white);
}

.login-card h3 {
    text-align: center;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.card-subtitle {
    text-align: center;
    color: var(--text-gray);
    font-size: 12px;
    margin-bottom: 30px;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-gray);
    margin-bottom: 8px;
    text-transform: uppercase;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 15px;
    color: var(--text-gray);
    display: flex;
    align-items: center;
}

.input-wrapper input {
    width: 100%;
    background-color: var(--navy-input);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 14px 15px 14px 45px;
    color: var(--text-white);
    font-size: 14px;
    font-weight: 500;
    outline: none;
    transition: all 0.3s ease;
}

.input-wrapper input:focus {
    border-color: rgba(246, 202, 69, 0.5);
    box-shadow: 0 0 0 2px rgba(246, 202, 69, 0.1);
}

.input-wrapper input::placeholder {
    color: #4A5568;
}

.toggle-password {
    position: absolute;
    right: 15px;
    background: none;
    border: none;
    color: var(--text-gray);
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 0;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    margin-bottom: 30px;
}

/* Custom Checkbox */
.checkbox-container {
    display: block;
    position: relative;
    padding-left: 25px;
    cursor: pointer;
    font-size: 12px;
    color: var(--text-gray);
    user-select: none;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 16px;
    width: 16px;
    background-color: var(--navy-input);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 4px;
}

.checkbox-container:hover input ~ .checkmark {
    border-color: rgba(246, 202, 69, 0.5);
}

.checkbox-container input:checked ~ .checkmark {
    background-color: var(--yellow-brand);
    border-color: var(--yellow-brand);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid var(--navy-dark);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.support-link {
    color: var(--text-gray);
    font-size: 12px;
    text-decoration: none;
    transition: color 0.3s;
}

.support-link:hover {
    color: var(--text-white);
}

/* Buttons */
.btn-primary {
    width: 100%;
    background-color: var(--yellow-brand);
    color: var(--navy-dark);
    border: none;
    border-radius: 8px;
    padding: 16px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.btn-primary:hover {
    background-color: #fce181;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(246, 202, 69, 0.3);
}

.card-footer {
    margin-top: 30px;
    text-align: center;
}

.btn-secondary {
    background-color: rgba(0,0,0,0.2);
    color: var(--text-gray);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 20px;
    padding: 8px 24px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: rgba(255,255,255,0.05);
    color: var(--text-white);
}

.secure-footer {
    position: absolute;
    bottom: 20px;
    text-align: center;
    width: 100%;
}

.secure-footer p {
    font-size: 10px;
    color: rgba(10, 15, 28, 0.5);
    font-weight: 600;
}

/* Responsive */
@media (max-width: 900px) {
    .split-container {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
        overflow-y: auto;
    }
    .split-left {
        padding-bottom: 60px;
    }
    .machine-graphic {
        display: none; /* Hide graphic on small screens to save space */
    }
    .split-right {
        padding: 40px 20px;
    }
}
