:root {
    --gray-900: #191C1F;
    --gray-100: #E4E7E9;
    --gray-00: #FFF;
    --gray-700: #475156;
    --graphite-500: #00273E;
    --default-600: #475569;
    --blue-300: #9BA8E4;
    --default-400: #94A3B8;
    --red: #E52313;
    --black: #000;
    --graphite-100: #F2F4F5;
}

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

html, body {
    height: 100%;
    width: 100%;
}

body {
    font-family: 'Roboto', -apple-system, Roboto, Helvetica, sans-serif;
    background-color: var(--gray-00);
    color: var(--gray-900);
    overflow: hidden;
}

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

/* Left Side - Image */
.left-panel {
    flex: 1;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.1));
    position: relative;
    overflow: hidden;
}

.background-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 39, 62, 0.2), rgba(0, 0, 0, 0.3));
}

/* Right Side - Login Form */
.right-panel {
    width: 100%;
    max-width: 512px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: var(--gray-00);
}

@media (max-width: 768px) {
    .left-panel {
        display: none;
    }

    .right-panel {
        max-width: 100%;
        padding: 24px;
    }
}

/* Logo */
.logo-container {
    margin-bottom: 48px;
    text-align: center;
}

.logo {
    display: inline-block;
    padding: 12px 24px;
    background: var(--black);
    color: white;
    font-weight: bold;
    font-size: 18px;
    letter-spacing: 0.1em;
}

/* Login Form Container */
.login-card {
    width: 100%;
    max-width: 484px;
}

.login-header {
    margin-bottom: 30px;
    text-align: center;
}

.login-title {
    color: var(--graphite-500);
    font-size: 24px;
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 8px;
}

.login-subtitle {
    color: var(--default-600);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.35;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    color: var(--default-600);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.35;
}

.form-input {
    width: 100%;
    padding: 11px 16px;
    border-radius: 3px;
    border: 1px solid var(--blue-300);
    background: var(--gray-00);
    color: var(--gray-900);
    font-size: 14px;
    font-family: 'Roboto', -apple-system, Roboto, Helvetica, sans-serif;
    transition: all 0.2s;
}

.form-input::placeholder {
    color: var(--default-400);
}

.form-input:focus {
    outline: none;
    border-color: var(--graphite-500);
    box-shadow: 0 0 0 3px rgba(155, 168, 228, 0.1);
}

/* Remember Me & Forgot Password Row */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: -10px;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.checkbox-wrapper input[type="checkbox"] {
    width: 16px;
    height: 16px;
    border-radius: 1px;
    border: 0.5px solid var(--black);
    cursor: pointer;
}

.checkbox-label {
    color: #4B5563;
    font-family: 'Inter', -apple-system, Roboto, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.43;
}

.forgot-password {
    color: var(--red);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    text-decoration: none;
    transition: opacity 0.2s;
}

.forgot-password:hover {
    opacity: 0.8;
}

/* Sign In Button */
.signin-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    width: 100%;
    padding: 10px 15px;
    border-radius: 4px;
    background: var(--black);
    color: var(--graphite-100);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.35;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Roboto', -apple-system, Roboto, Helvetica, sans-serif;
}

.signin-btn:hover {
    background: #1a1a1a;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.signin-btn:active {
    transform: translateY(0);
}

.signin-btn svg {
    width: 22px;
    height: 22px;
}

/* Sign Up Link */
.signup-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}

.signup-text {
    color: #4B5563;
    font-family: 'Inter', -apple-system, Roboto, Helvetica, sans-serif;
    font-size: 12px;
    font-weight: 400;
}

.signup-link {
    color: var(--red);
    font-family: 'Inter', -apple-system, Roboto, Helvetica, sans-serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-decoration: underline;
    transition: opacity 0.2s;
}

.signup-link:hover {
    opacity: 0.8;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-card {
    animation: fadeIn 0.6s ease-out;
}

.logo-container {
    animation: fadeIn 0.4s ease-out;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .login-title {
        font-size: 20px;
    }

    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .signup-section {
        flex-direction: column;
        gap: 8px;
    }
}

/* Loading state */
.signin-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.signin-btn.loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid var(--graphite-100);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin-left: 8px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

