@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

html, body {
    height: 100%;
    margin: 0;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif !important;
    background-color: #f1f5f9 !important;
}

body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #1e293b !important;
}

main {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100vh;
    padding: 20px;
    box-sizing: border-box;
}

/* Master Grid Card */
.login-container {
    background-color: #ffffff;
    border-radius: 24px;
    width: 1000px;
    max-width: 95%;
    height: 640px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08);
    display: flex;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

/* Left Section: Brand & Form */
.login-left {
    flex: 1;
    padding: 50px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.brand-section {
    margin-bottom: 30px;
}

.login-logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.login-logo-img {
    max-height: 80px;
    max-width: 100%;
    object-fit: contain;
}

.brand-title {
    font-size: 32px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    letter-spacing: -1px;
}

.brand-subtitle {
    font-size: 14px;
    color: #64748b;
    margin: 6px 0 0;
    font-weight: 500;
}

/* Floating Inner Login Form Card */
.login-card {
    background-color: #ffffff;
    border-radius: 18px;
    border: 1px solid #e2e8f0;
    padding: 30px;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.02);
}

.card-title {
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 24px;
    letter-spacing: -0.5px;
}

/* Form Groups */
.input-group-modern {
    display: flex;
    align-items: center;
    background-color: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 16px;
    transition: all 0.2s ease;
}

.input-group-modern:focus-within {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.input-icon {
    color: #94a3b8;
    margin-right: 12px;
    display: flex;
    align-items: center;
    transition: color 0.2s ease;
}

.input-group-modern:focus-within .input-icon {
    color: #2563eb;
}

.modern-input {
    border: none !important;
    outline: none !important;
    background: transparent !important;
    width: 100% !important;
    font-size: 14px !important;
    font-family: inherit !important;
    color: #0f172a !important;
    padding: 0 !important;
    box-shadow: none !important;
}

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

/* iOS Toggle Switch */
.toggle-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0 24px;
}

.toggle-label {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
}

.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: .3s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

input:checked + .slider {
    background-color: #10b981;
}

input:checked + .slider:before {
    transform: translateX(20px);
}

/* Submit Button */
.btn-login {
    width: 100%;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border: none;
    padding: 12px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.24);
}

.btn-login:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.32);
    transform: translateY(-1px);
}

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

/* Touch ID Block */
.touch-id-container {
    display: flex;
    justify-content: center;
    margin-top: 24px;
    border-top: 1px solid #f1f5f9;
    padding-top: 20px;
}

.btn-touch-id {
    background: transparent;
    border: 1.5px solid #3b82f6;
    border-radius: 12px;
    color: #3b82f6;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 120px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-touch-id svg {
    stroke-width: 1.5;
}

.btn-touch-id span {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.btn-touch-id:hover {
    background-color: rgba(59, 130, 246, 0.05);
    transform: translateY(-1px);
}

/* Right Section: Illustration */
.login-right {
    flex: 1.2;
    background-color: #ffffff;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    border-left: 1px solid #f1f5f9;
}

.illustration-img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    z-index: 10;
}

/* Alerts and errors styling */
.alert {
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    padding: 10px 14px;
    margin-bottom: 16px;
    border: 1px solid transparent;
}

.alert-danger {
    background-color: #fef2f2;
    border-color: #fee2e2;
    color: #b91c1c;
}

.alert-info {
    background-color: #eff6ff;
    border-color: #dbeafe;
    color: #1e40af;
}

/* Responsive Viewports */
@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
        height: auto;
        max-width: 440px;
    }
    
    .login-right {
        display: none;
    }
    
    .login-left {
        padding: 30px;
    }
}
