:root {
    --primary-blue: #15579d;
    --secondary-blue: #1d72b8;
    --text-dark: #1a365d;
    --text-gray: #64748b;
    --border-color: #e2e8f0;
    --accent-green: #10b981;
    --error-red: #ef4444;
}

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

body {
    background-color: #f8fafc;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.container {
    display: flex;
    background: white;
    width: 100%;
    max-width: 1000px;
    min-height: 600px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.sidebar {
    flex: 1;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: white;
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.sidebar::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 700;
}

.logo-box {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px;
    border-radius: 10px;
    display: flex;
}

.hero-text h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 24px;
}

.hero-text p {
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.6;
}

.security-badge {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 16px 24px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    width: fit-content;
}

.shield-icon {
    color: var(--accent-green);
}

.form-section {
    flex: 1.2;
    padding: 60px 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-header h2 {
    color: var(--text-dark);
    font-size: 2rem;
    margin-bottom: 8px;
}

.form-header p {
    color: var(--text-gray);
    margin-bottom: 40px;
}

.input-group {
    margin-bottom: 24px; /* Increased to account for error messages */
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.input-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
}

.input-wrapper i:not(.toggle-password i) {
    position: absolute;
    left: 16px;
    top: 16px;
    color: #94a3b8;
    width: 18px;
    pointer-events: none;
}

.input-wrapper input {
    width: 100%;
    padding: 14px 16px 14px 48px;
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    outline: none;
    transition: all 0.2s ease-in-out;
}

.input-wrapper input:focus {
    border-color: var(--secondary-blue);
}

/* Error States */
.input-wrapper input.invalid,
.input-wrapper input.mismatch {
    border-color: var(--error-red) !important;
    background-color: #fef2f2;
}

.error-msg {
    color: var(--error-red);
    font-size: 0.75rem;
    margin-top: 6px;
    font-weight: 500;
    display: none;
}

/* Show error messages based on input classes */
input.invalid ~ .pass-error,
input.mismatch ~ .match-error {
    display: block;
}

.toggle-password {
    position: absolute;
    right: 16px;
    top: 16px;
    cursor: pointer;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.terms-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 24px 0;
    font-size: 0.9rem;
    color: var(--text-gray);
}

.terms-row a {
    color: var(--accent-green);
    text-decoration: none;
    font-weight: 500;
}

/* Button States */
.btn-submit {
    width: 100%;
    padding: 16px;
    background: #cbd5e1;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: all 0.4s ease;
    cursor: not-allowed;
    opacity: 0.6;
    pointer-events: none;
}

.btn-submit.active {
    background: var(--secondary-blue) !important;
    color: white !important;
    cursor: pointer !important;
    box-shadow: 0 4px 15px rgba(29, 114, 184, 0.4);
    opacity: 1 !important;
    pointer-events: auto !important;
}

.btn-submit.active:hover {
    background: var(--primary-blue) !important;
    transform: translateY(-1px);
}

.btn-submit.active:active {
    transform: translateY(1px);
}

.login-footer {
    text-align: center;
    margin-top: 32px;
    font-size: 0.9rem;
    color: var(--text-gray);
}

.login-footer a {
    color: var(--accent-green);
    text-decoration: none;
    font-weight: 600;
}

@media (max-width: 900px) {
    .container {
        flex-direction: column;
    }
    .form-section {
        padding: 40px 24px;
    }
}