* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    display: flex;
    overflow: hidden;
}

/* Panel izquierdo con gradiente morado */
.left-panel {
    flex: 1;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 48px;
    position: relative;
    overflow: hidden;
}

.left-panel::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    filter: blur(60px);
}

.left-panel::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    filter: blur(50px);
}

.icon-container {
    position: relative;
    z-index: 1;
    width: 120px;
    height: 120px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
}

.icon-container i {
    font-size: 48px;
    color: #6366f1;
}

.quick-access-title {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
}

.quick-access-desc {
    position: relative;
    z-index: 1;
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    max-width: 300px;
}

/* Panel derecho con formulario */
.right-panel {
    flex: 1;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
    overflow-y: auto;
}

.login-form-container {
    width: 100%;
    max-width: 420px;
}

.form-title {
    font-size: 28px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
}

.form-subtitle {
    font-size: 15px;
    color: #6b7280;
    margin-bottom: 32px;
}

.flash-message {
    background: #d1fae5;
    border: 1px solid #10b981;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 24px;
    color: #065f46;
    font-size: 14px;
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    background: white;
    color: #111827;
    transition: all 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-input::placeholder {
    color: #9ca3af;
}

.form-error {
    color: #ef4444;
    font-size: 13px;
    margin-top: 6px;
}

.btn-primary {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s;
    margin-bottom: 24px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.4);
}

.other-options {
    text-align: center;
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 16px;
}

.alt-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.alt-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #6366f1;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.alt-link:hover {
    color: #4f46e5;
}

.alt-link i {
    font-size: 16px;
}

@media (max-width: 968px) {
    body {
        flex-direction: column;
        overflow-y: auto;
        overflow-x: hidden;
    }

    .left-panel {
        min-height: 40vh;
        padding: 32px;
    }

    .right-panel {
        padding: 32px 24px;
        padding-bottom: max(32px, env(safe-area-inset-bottom, 32px) + 60px);
        min-height: 60vh;
        display: flex;
        align-items: flex-start;
        justify-content: center;
    }
    
    .login-form-container {
        padding-bottom: 20px;
        margin-bottom: 20px;
    }
    
    .alt-links {
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .right-panel {
        padding: 24px 20px;
        padding-bottom: max(24px, env(safe-area-inset-bottom, 24px) + 80px);
    }
    
    .login-form-container {
        padding-bottom: 30px;
        margin-bottom: 30px;
    }
    
    .alt-links {
        margin-bottom: 30px;
    }
}
